I followed the instructions to configure and make PAPI 4.1.0. When I tried "make test", I got the following error.
zuoqi@zuoqi-desktop:~/papi-4.1.0/src$ make test
cd ctests; make CC="gcc" CC_R="gcc -pthread" CFLAGS="-I.. -g -DSTATIC_PAPI_EVENTS_TABLE -DSYNC_READ -DPEINCLUDE=\"/usr/src/linux-headers-2.6.32-21/include/linux//perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -Wall -DUSE_COMPILER_TLS -I/home/zuoqi/papi-4.1.0/src/libpfm-3.y/include -DSUBSTRATE_USES_LIBPFM -Wextra -DPAPI_NO_MEMORY_MANAGEMENT" TOPTFLAGS="-O0" SMPCFLGS="" OMPCFLGS="-fopenmp" NOOPT="" LDFLAGS=" " LIBRARY="../libpapi.a" papi_api serial forkexec_tests overflow_tests profile_tests attach multiplex_and_pthreads shared ear
make[1]: Entering directory `/home/zuoqi/papi-4.1.0/src/ctests'
make[1]: Nothing to be done for `papi_api'.
make[1]: Nothing to be done for `serial'.
make[1]: Nothing to be done for `forkexec_tests'.
make[1]: Nothing to be done for `overflow_tests'.
make[1]: Nothing to be done for `profile_tests'.
make[1]: Nothing to be done for `attach'.
make[1]: Nothing to be done for `multiplex_and_pthreads'.
make[1]: Nothing to be done for `shared'.
make[1]: Nothing to be done for `ear'.
make[1]: Leaving directory `/home/zuoqi/papi-4.1.0/src/ctests'
ctests/zero
PAPI Error: sys_perf_counter_open returned error on event #0. Unix says, Operation not permitted.
PAPI_FP_INS is not available.
PAPI Error: sys_perf_counter_open returned error on event #0. Unix says, Operation not permitted.
PAPI_TOT_CYC is not available.
zero.c FAILED
Line # 64
Error in PAPI_start: PAPI_EINVAL
Test case 0: start, stop.
-----------------------------------------------
Default domain is: 1 (PAPI_DOM_USER)
Default granularity is: 1 (PAPI_GRN_THR)
Using 20000000 iterations of c += a*b
-------------------------------------------------------------------------
Test type : 1
PAPI_FP_INS : 4618551301387084784
Real usec : 152148
Real cycles : 547798896
Virt usec : 150468
Virt cycles : 541688400
-------------------------------------------------------------------------
Verification: none
make: *** [test] Error 1
I tried other configurations such as --with-perf-events and --with-pe-incdir=/usr/src/linux-headers-2.6.32-21/include/linux/
However, nothing helped.
I'm really confused. Could anyone give me a hand?
Thanks a lot!
