ROCm component with ROCm 7.0

4 views
Skip to first unread message

Kaufmann, Steve

unread,
Sep 17, 2025, 11:14:16 AMSep 17
to Treece Burgess, perfap...@icl.utk.edu
Hi Treece

We are starting to build PAPI with the rocm component using ROCm 7.0 headers. There are numerous compilation errors, so I was wondering the schedule upstream would follow to get this component to work with ROCm 7.0.

The ROCm packages are available at 


Do want me to file a ticket issue for this?

Thanks!

Steve


Heike Jagode

unread,
Sep 17, 2025, 11:52:17 AMSep 17
to Kaufmann, Steve, Dong Jun Woun, Treece Burgess, perfap...@icl.utk.edu
Hi Steve,

Thank you for testing with the latest ROCm 7.0.0 release. For ROCm support, please use the PAPI rocp_sdk component. The old(er) PAPI rocm component only supports ROCm versions released prior to AMD’s switch to the rocprofiler-sdk. For the latest AMD GPU support, please use PAPI rocp_sdk, as the PAPI rocm component will soon be deprecated.

Thanks,
Heike




--
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/DM4PR84MB312702B852955DCF6BA041D7EC17A%40DM4PR84MB3127.NAMPRD84.PROD.OUTLOOK.COM.


--
__________________________________________
Heike Jagode, Ph.D., Research Associate Professor
Innovative Computing Laboratory (ICL)
University of Tennessee Knoxville
http://icl.utk.edu/~jagode/

Kaufmann, Steve

unread,
Sep 17, 2025, 12:05:28 PMSep 17
to Heike Jagode, Dong Jun Woun, Treece Burgess, perfap...@icl.utk.edu
Ah, right. I had forgotten about all that. Thanks for reminding me!! I'll try compiling with the rocp_sdk component and let you know if I find anything.

Steve

From: Heike Jagode <jag...@icl.utk.edu>
Sent: Wednesday, September 17, 2025 10:51 AM
To: Kaufmann, Steve <steven....@hpe.com>; Dong Jun Woun <djw...@gmail.com>
Cc: Treece Burgess <tbur...@icl.utk.edu>; perfap...@icl.utk.edu <perfap...@icl.utk.edu>
Subject: Re: [perfapi-devel] ROCm component with ROCm 7.0
 

Kaufmann, Steve

unread,
Sep 17, 2025, 12:08:21 PMSep 17
to Heike Jagode, Dong Jun Woun, Kaufmann, Steve, Treece Burgess, perfap...@icl.utk.edu
My mistake. I WAS building the rocp_sbk component, not rocm.

So there is work to be done for to support this component with ROCm 7.0.

Let me know if there is anything I can do (besides double and triple checking!).

Steve


From: 'Kaufmann, Steve' via perfapi-devel <perfap...@icl.utk.edu>
Sent: Wednesday, September 17, 2025 11:05 AM
To: Heike Jagode <jag...@icl.utk.edu>; Dong Jun Woun <djw...@gmail.com>

Kaufmann, Steve

unread,
Sep 17, 2025, 6:02:41 PMSep 17
to Heike Jagode, Dong Jun Woun, Treece Burgess, perfap...@icl.utk.edu
I had to make the following changes in the rocp_sdk component in order for that component to successfully compile with ROCm 7.0 header files. I have NOT done any runtime testing, but I'm hoping you look over these changes and apply them (or similar) when you start using ROCm 7.0 (you may have to use the rocm version macro so that pre-7.0 headers still work) if you want the component to compile under both 7.0 and pre-7.0 ROCm.

Regards, Steve

=============

diff --git a/src/components/rocp_sdk/sdk_class.cpp b/src/components/rocp_sdk/sdk_class.cpp
index d58d4b6a7..656115a6b 100644
--- a/src/components/rocp_sdk/sdk_class.cpp
+++ b/src/components/rocp_sdk/sdk_class.cpp
@@ -74,13 +74,11 @@ static std::unordered_map<std::string, unsigned int> event_instance_name_to_papi
 /* *** */
 typedef rocprofiler_status_t (* rocprofiler_flush_buffer_t) (rocprofiler_buffer_id_t buffer_id);
 
-typedef rocprofiler_status_t (* rocprofiler_sample_device_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_user_data_t user_data, rocprofiler_counter_flag_t flags, rocprofiler_record_counter_t* output_records, size_t* rec_count);
-
-typedef rocprofiler_status_t (* rocprofiler_configure_callback_dispatch_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_dispatch_counting_service_callback_t dispatch_callback, void *dispatch_callback_args, rocprofiler_profile_counting_record_callback_t record_callback, void *record_callback_args);
-
-typedef rocprofiler_status_t (* rocprofiler_configure_device_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_buffer_id_t buffer_id, rocprofiler_agent_id_t agent_id, rocprofiler_device_counting_service_callback_t cb, void *user_data);
+typedef rocprofiler_status_t (* rocprofiler_sample_device_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_user_data_t user_data, rocprofiler_counter_flag_t flags, rocprofiler_counter_record_t *output_records, size_t *rec_count);
 
+typedef rocprofiler_status_t (* rocprofiler_configure_callback_dispatch_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_dispatch_counting_service_cb_t dispatch_callback, void *dispatch_callback_args, rocprofiler_dispatch_counting_record_cb_t record_callback, void *record_callback_args);
 
+typedef rocprofiler_status_t (* rocprofiler_configure_device_counting_service_t) (rocprofiler_context_id_t context_id, rocprofiler_buffer_id_t buffer_id, rocprofiler_agent_id_t agent_id, rocprofiler_device_counting_service_cb_t cb, void *user_data);
 
 typedef rocprofiler_status_t (* rocprofiler_create_buffer_t) (rocprofiler_context_id_t context, unsigned long size, unsigned long watermark, rocprofiler_buffer_policy_t policy, rocprofiler_buffer_tracing_cb_t callback, void *callback_data, rocprofiler_buffer_id_t *buffer_id);
 


From: Kaufmann, Steve <steven....@hpe.com>
Sent: Wednesday, September 17, 2025 11:07 AM
To: Heike Jagode <jag...@icl.utk.edu>; Dong Jun Woun <djw...@gmail.com>; Kaufmann, Steve <steven....@hpe.com>

Heike Jagode

unread,
Sep 17, 2025, 9:21:04 PMSep 17
to Kaufmann, Steve, Dong Jun Woun, perfap...@icl.utk.edu, Treece Burgess
Thanks so much, Steve, for digging into this further! We are looking into it as well and will send an update as soon as possible.

Much appreciated,
Heike

Heike Jagode

unread,
Sep 18, 2025, 10:59:38 AMSep 18
to Kaufmann, Steve, Dong Jun Woun, perfap...@icl.utk.edu, Treece Burgess
Hi Steve,

Jun (CCed to this email) has been working on a PR to fix the issues with rocp_sdk and ROCm 7.0.0. It is currently under review, but I’m sharing the PR link here in case you would like to test it now.

Thanks,
Heike

Kaufmann, Steve

unread,
Sep 19, 2025, 11:10:36 AMSep 19
to Heike Jagode, Dong Jun Woun, perfap...@icl.utk.edu, Treece Burgess
I pulled the affected files and built a papi library with them. The utilities papi_component_avail and papi_native_avail seem to work fine with the rocp_sdk component configured.

Thanks!

Steve


From: Heike Jagode <jag...@icl.utk.edu>
Sent: Thursday, September 18, 2025 9:59 AM

To: Kaufmann, Steve <steven....@hpe.com>; Dong Jun Woun <djw...@gmail.com>
Reply all
Reply to author
Forward
0 new messages