I am in the process of installing and verifying papi 5.0.0 on an Intel Xeon E5530 computer running Ubuntu 11.04 (uname -r gives 2.6.38-11-generic). I am attempting to install PAPI with the cuda component enabled. When I attempted to run the test suite, I got a segmentation fault during ctests/all_native_events. When I went back and just ran ctests/all_native_events so that the TESTS_QUIET flag would not be set, I saw that all_native_events died after printing the message "Added and Stopped CUDA:::Tesla_C1060.domain_a:tex_cache_hit successfully."

I believe the problem is occurring during the call to PAPI_cleanup_eventset() which occurs in the subroutine check_event in the all_native_events.c file.

I note that in the README file for PAPI components, under cuda/ it says: "..., the user has to call PAPI_cleanup_eventset( EventSet ) before calling PAPI_shutdown() in the application." However, the HelloWorld.cu example does not demonstrate the use of this call. If a CUDA counter is used for EventName (e.g., char *EventName[] = {"CUDA:::Tesla_C1060.domain_a:tex_cache_hit"};) and PAPI_cleanup_eventset is added to the end of the HelloWorld.cu file (and the program is rebuilt), a segmentation fault occurs on my machine. However, the count given seems reasonable (0 for CUDA:::Tesla_C1060.domain_a:tex_cache_hit, 9 for CUDA:::Tesla_C1060:domain_b:instructions).

Questions:1. Is this a known issue? 2. Is this an installation or configuration issue?3. Is this an issue with using an older GPU?