Skip to content

Conversation

dgaliffiAMD
Copy link
Contributor

Motivation

Fix OMPT events and GPU performance counters missing from ROCPD output

Technical Details

Test Plan

Test Result

Submission Checklist

kcossett-amd and others added 4 commits October 16, 2025 22:07
* Add OMPT to ROCpd

* Use correct category

* Added wrapper functions for future control

* Formatting

* Fix naming

* Comment change

* Remove ompt_get_cb_args

* Switched to using region_sample for OMPT

* Remove relic function

* Remove get_use_rocpd that was used in this pr (one still remains)

* Rename ompt_get_args_string and reuse in tool_tracing_callback_stop

* Make lock init and destroy cb instant

* [Prototype] ROCPD Name fix

* [Prototype] ROCPD Name fix P1

* [Prototype] ROCPD Name fix P2

* ROCPD Name fix

* Var name changes

* Rewrite cb overwrite to single function

* [Important] Use parallel_data as key for parallel callback map

* Fix workflow failure

* Make cpp USE_ROCM consistent with hpp and use default constructor if USE_ROCM = 0

* Add missing ROCPROFILER_VERSION check

* Improve readability

* Make ompt storage maps thread local

* Part 1: Variable name fix, memory cleanup, and fixed asserts

* Part 2: Add comments

* Part 3: Add CI_THROW

* Part 4: Formatting

* Part 5: Move #include to cpp
* Add missing counter events handling for ROCPD

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Update projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk/counters.cpp

* Fixed formatting

Signed-off-by: David Galiffi <[email protected]>

---------

Signed-off-by: Marjan Antic <[email protected]>
Co-authored-by: David Galiffi <[email protected]>
@dgaliffiAMD dgaliffiAMD requested review from a team and jrmadsen as code owners October 17, 2025 02:24
@dgaliffiAMD dgaliffiAMD added release promotion Tagged pull request is a candidate for cherry picking to a release branch ROCm-7.1 labels Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

organization: ROCm project: rocprofiler-systems release promotion Tagged pull request is a candidate for cherry picking to a release branch ROCm-7.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants