I am a new user of papi. I wrote a simple test which only call PAPI_library_init, but when it run
I got the follow error:
fcntl: Bad file descriptor
PAPI Error: vperfctr_open() returned NULL, please run perfex -i to verify your perfctr installation.
The /dev/perfctr is readable. When I run perfex -i, the result is the follow:
cpu_type 18 (Intel Core 2)
cpu_features 0x7 (rdpmc,rdtsc,pcint)
cpus [0,1,2,3,4,5,6,7], total: 8
cpus_forbidden , total: 0
Can anyone help me fix this error?