PAPI now segfaulting

9 views
Skip to first unread message

Kaufmann, Steve

unread,
May 8, 2025, 1:48:11 PMMay 8
to Heike Jagode, perfap...@icl.utk.edu
Pulling the latest code from PAPI shows that I get segfaults upon initialization. My tests show a similar traceback:
...
(gdb) where
#0  0x0000000000000000 in ?? ()
#1  0x00007fd86f3e3775 in util_dylib_cupti_version () at components/cuda/papi_cupti_common.c:468
#2  0x00007fd86f3e3f6c in cuptic_determine_runtime_api () at components/cuda/papi_cupti_common.c:662
#3  0x00007fd86f3dedb7 in cuptid_evt_enum (event_code=0x7fff5c5b5dcc, modifier=1)
    at components/cuda/cupti_dispatch.c:230
#4  0x00007fd86f3dea5b in cuda_get_evt_count (count=0x7fff5c5b5df4) at components/cuda/linux-cuda.c:663
#5  0x00007fd86f3dc860 in cuda_init_private () at components/cuda/linux-cuda.c:217
#6  0x00007fd86f3dc9b7 in check_n_initialize () at components/cuda/linux-cuda.c:237
#7  0x00007fd86f3dcac6 in cuda_ntv_enum_events (event_code=0x7fff5c5b5e70, modifier=1)
    at components/cuda/linux-cuda.c:245
#8  0x00007fd86f35d80d in _papi_hwi_init_global_presets () at papi_internal.c:2233
#9  0x00007fd86f335f8a in PAPI_library_init (version=117571584) at papi.c:1215
....

I have not done extensive papi-only testing so I'll do that and get back more info back you. Please let me know if there would be any helpful testing that would guide you into determining what the problem(s) might be.

Note that I am not requesting any cuda counters nor do I have any cuda modules loaded.

Thanks! Steve

Treece Burgess

unread,
May 8, 2025, 3:18:52 PMMay 8
to Kaufmann, Steve, Heike Jagode, perfap...@icl.utk.edu
Hello Steve,

Thank you for your email. I have been able to recreate this issue on a GH200 when I do not have PAPI_CUDA_ROOT set nor any Cuda modules loaded. I have created PR #363 which resolves this issue for myself. Please let me know if this PR resolves the issue for you too.

Best wishes,

Treece

--
You received this message because you are subscribed to the Google Groups "perfapi-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfapi-deve...@icl.utk.edu.
To view this discussion visit https://groups.google.com/a/icl.utk.edu/d/msgid/perfapi-devel/DM4PR84MB312748B2BA51EFDD49D6C5F3EC8BA%40DM4PR84MB3127.NAMPRD84.PROD.OUTLOOK.COM.

Kaufmann, Steve

unread,
May 8, 2025, 4:21:07 PMMay 8
to Treece Burgess, Heike Jagode, perfap...@icl.utk.edu
Cool - I'll grab the changes and try them out. Thanks! Steve


From: Treece Burgess <tbur...@icl.utk.edu>
Sent: Thursday, May 8, 2025 2:18 PM
To: Kaufmann, Steve <steven....@hpe.com>
Cc: Heike Jagode <jag...@icl.utk.edu>; perfap...@icl.utk.edu <perfap...@icl.utk.edu>
Subject: Re: [perfapi-devel] PAPI now segfaulting
 

Kaufmann, Steve

unread,
May 8, 2025, 4:41:55 PMMay 8
to Treece Burgess, Heike Jagode, perfap...@icl.utk.edu
Your changes fix the issue. As I said previously : "ship it" ;-)


From: Treece Burgess <tbur...@icl.utk.edu>
Sent: Thursday, May 8, 2025 2:18 PM
To: Kaufmann, Steve <steven....@hpe.com>
Cc: Heike Jagode <jag...@icl.utk.edu>; perfap...@icl.utk.edu <perfap...@icl.utk.edu>
Subject: Re: [perfapi-devel] PAPI now segfaulting
 
Reply all
Reply to author
Forward
0 new messages