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.

Eliminating loop overheadsFor starting a loop, the CPU must free certainregisters: loop counter, address, etc.This may be significant for a short loop!Example: for n>mdo i= 1,ndo j= 1,m...is less efficient thando j= 1,mdo i= 1,n...However, data access optimizations are even moreimportant, see belowProf. Craig C. DouglasUniversity of Kentucky andYale UniversityHiPC2003, 12/17/2003 vHPC <strong>Cache</strong> Aware Methods 78

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

Saved successfully!

Ooh no, something went wrong!