Hi, I am trying to build PAPI with CUDA component, I have configured the CUDA makefile correctly in the components directory. The configure of PAPI with option "--with-components-cuda" seens fine but then I try to run the command make, I get the following error:
gcc -I../testlib -I. -I.. -g -DSTATIC_PAPI_EVENTS_TABLE -DPEINCLUDE="libpfm4/include/perfmon/perf_event.h" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -Wall -Ilibpfm4/include -Wextra -I/usr/local/cuda/include -I/usr/local/cuda/extras/CUPTI/include avail.c ../testlib/do_loops.o ../testlib/dummy.o ../testlib/test_utils.o ../libpapi.a -L/usr/local/cuda/extras/CUPTI/lib64 -lcupti -o papi_avail
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ../libpapi.a(linux-cuda.o): undefined reference to symbol 'cuCtxDestroy_v2'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'cuCtxDestroy_v2' is defined in DSO /usr/lib64/libcuda.so.1 so try adding it to the linker command line
/usr/lib64/libcuda.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [papi_avail] Error 1
make[2]: Leaving directory `/home/braulio/Downloads/papi/papi-5.0.1/src/utils'
make[1]: *** [utils] Error 2
make[1]: Leaving directory `/home/braulio/Downloads/papi/papi-5.0.1/src'
make: *** [/home/braulio/Downloads/papi/papi-5.0.1/src/libpfm4/lib/libpfm.a] Error 2
I also have tried different versions of CUDA (4.2.9 and the newest 5.0.35) but the problem persists.
I am using PAPI version 5.0.1, opensuse 12.1 and the GNU compilers are version 4.6.2.
Any hints?
Thanks in advance.