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 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
Get step-by-step solutions from verified subject matter experts
