Question: 3. (35 points) The following code is an example of a tensor contraction, a higher dimensional generalization of matrix multiplication. Use loop transformations to improve

 3. (35 points) The following code is an example of a

3. (35 points) The following code is an example of a tensor contraction, a higher dimensional generalization of matrix multiplication. Use loop transformations to improve performance. Target is 1.5 GFLOPs for gcc and 2 GFLOPs for icc (somewhat higher performance should be feasible; I'd be interested in seeing how much higher anybody is able to achieve on this code) int i,j,k,1; double x[N N EN,y DN N N],z N N; for (i-0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!