Name: cs598dhp Parallel Processing Midterm Exam Due in ... - Polaris
Name: cs598dhp Parallel Processing Midterm Exam Due in ... - Polaris
Name: cs598dhp Parallel Processing Midterm Exam Due in ... - Polaris
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
3. Locality enhancement [5 pts.] Consider the loop below.(a) How would you transform it to enhance locality?(b) For large values of n, what fraction of cache misses do your improved versionsaves relative to the orig<strong>in</strong>al version?do i=1,ndo j=1,nB(i,j)=A(i,j+1)+A(i-1,j)+A(i,j-1)+A(i+1,j)end doend do4