12.07.2015 Views

Cache Usage Tutorial - MGNet

Cache Usage Tutorial - MGNet

Cache Usage Tutorial - MGNet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Loop unrolling:Improving flop/load ratioAnalysis of the flop-to-load-ratio often unveils anotherbenefit of unrolling:do i= 1,Ndo j= 1,My(i)=y(i)+a(j,i)*x(j)enddoenddoInnermost loop: three loads andtwo flops performed; i.e., wehave one load per flopProf. Craig C. DouglasUniversity of Kentucky andYale UniversityHiPC2003, 12/17/2003 vHPC <strong>Cache</strong> Aware Methods 66

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

Saved successfully!

Ooh no, something went wrong!