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.

Using PCL – Example 2PCLinit(&descr);if(PCLquery(descr,counter_list,2,flags)!=PCL_SUCCESS)// Issue error message …else {PCL_start(descr, counter_list, 2, flags);// Do computational work here …PCLstop(descr,i_result,fp_result,2);printf(“%i fp instructions, MFLOPS: %f\n”,i_result[0], fp_result[1]);}PCLexit(descr);return 0;}Prof. Craig C. DouglasUniversity of Kentucky andYale UniversityHiPC2003, 12/17/2003 vHPC <strong>Cache</strong> Aware Methods 52

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

Saved successfully!

Ooh no, something went wrong!