12.07.2015 Views

Cache Usage Tutorial - MGNet

Cache Usage Tutorial - MGNet

Cache Usage Tutorial - MGNet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Data access optimizations:Loop blocking// Inner part of the 2D gridfor k= 2*B to n-1 dofor i= k to k-2*B+1 by –2 dofor j= 1+(k+1)%2 to n-1 by 2 dorelax(u(j,i))relax(u(j,i-1))end forend forend forProf. Craig C. DouglasUniversity of Kentucky andYale UniversityHiPC2003, 12/17/2003 vHPC <strong>Cache</strong> Aware Methods 106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!