PAPI Notes

PAPI Notes

The following issues about PAPI are either known or were discovered:

Final Solution: After playing around with git bisesct, I discovered that the integer division bug cropped up when reading of performance counters via the rdpmc instruction was switched to the default (sometime after the 5.5.1 release). The rdpmc instruction is a x86 instruction for reading quickly from the performance counters. It seems that the PAPI implementation of using this instruction is quite buggy. By compiling PAPI with rdpmc turned off:

./configure --enable-perfevent-rdpmc=no

I was once again getting consistent and sensible numbers. Thus, I finally ended up using the master released, but disabling rdpmc.

Finding Perf Codes

A VERY helpful resource for finding event codes and such: http://www.bnikolic.co.uk/blog/hpc-prof-events.html.