Skip to content

[PC Sampling] Add gfx12xx PC Sampling Support#186

Merged
vlaindic merged 1 commit into
developfrom
import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs
Sep 22, 2025
Merged

[PC Sampling] Add gfx12xx PC Sampling Support#186
vlaindic merged 1 commit into
developfrom
import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs

Conversation

@systems-assistant

@systems-assistant systems-assistant Bot commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

PR Details

Initial GFX12 PC sampling support. The following is done as part of this PR:

  • Only host-trap is enabled, as Navi4x doesn't support stochastic PC sampling..
  • Still, we adapted parser's tests to verify stochastic data, as majority of code will be reused for later architecture.
  • Most of our integration tests were tied to gfx9 and 64 lane wide wavefront. This PR is using a wave_size (32 or 64) that depends on the underlying arch.

Notes

  • Please note that the WG_ID_Y and WG_ID_Z are meaningless for 1D dispatches. I still need to figure out if we can completely resolve this on the SDK side or we need 2nd level trap handler to deal with that. The ticket for tracking this effort is: SWDEV-542506

Associated Jira Ticket Number/Link

SWDEV-481151

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Continuous Integration

Technical details

Added/updated tests?

  • Yes
  • No, Does not apply to this PR.

Updated CHANGELOG?

  • Yes
  • No, Does not apply to this PR.

Added/Updated documentation?

  • Yes
  • No, Does not apply to this PR.

🔁 Imported from ROCm/rocprofiler-sdk#132
🧑‍💻 Originally authored by @rocm-devops

ajanicijamd pushed a commit to ajanicijamd/rocm-systems that referenced this pull request Aug 8, 2025
- Create a document to describe enabling VCN and JPEG related metrics
  and tracing
- Upload images and modify indexes.

[ROCm/rocprofiler-systems commit: 13f315a]
@ApoKalipse-V ApoKalipse-V self-requested a review August 8, 2025 20:58
ApoKalipse-V
ApoKalipse-V previously approved these changes Aug 11, 2025
@vlaindic vlaindic changed the title [PC Sampling][GFX12][Draft] PC Sampling Support [PC Sampling][GFX12] PC Sampling Support Aug 12, 2025
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch from 28bd5cc to 7ac9788 Compare August 22, 2025 10:28
@ammarwa

ammarwa commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

Code Coverage Report

Code Coverage Report

Tests Only

code coverage tests.png

Samples Only

code coverage samples.png

Tests + Samples

code coverage all.png

@bwelton bwelton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document the restrictions a bit more and address or create tickets to follow up on the TODO's (TODO W/O a ticket never get done).

Comment thread projects/rocprofiler-sdk/cmake/Modules/rocprofiler-sdk-utilities.cmake Outdated
Comment thread projects/rocprofiler-sdk/tests/pc_sampling/main.cpp Outdated
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch from 7ac9788 to fe0c828 Compare August 25, 2025 10:32

@vlaindic vlaindic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting original workloads.

@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch from fe0c828 to 9963c39 Compare August 25, 2025 11:14
@vlaindic vlaindic requested a review from bwelton August 25, 2025 11:17
@jrmadsen jrmadsen changed the title [PC Sampling][GFX12] PC Sampling Support [PC Sampling] Add gfx12xx PC Sampling Support Aug 26, 2025
@jrmadsen jrmadsen self-assigned this Aug 26, 2025
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch 2 times, most recently from 1c695cb to 6860d8e Compare September 16, 2025 11:16
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch from 6860d8e to 337eebb Compare September 16, 2025 16:02
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch 2 times, most recently from bf60216 to 45ce4dc Compare September 19, 2025 08:15
The initial host-trap PC sampling support in SDK and V3.
Introducing parser tests specific to GFX12.
Reducing testing worklod to run on Navi4x in reasonable timeframe.
@vlaindic vlaindic force-pushed the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch from 45ce4dc to 9a7c5e2 Compare September 19, 2025 16:45
@ammarwa ammarwa requested review from vlaindic and removed request for ammarwa, jrmadsen, t-tye and vlaindic September 19, 2025 17:07
@vlaindic vlaindic merged commit 63a723a into develop Sep 22, 2025
27 of 41 checks passed
@vlaindic vlaindic deleted the import/develop/ROCm_rocprofiler-sdk/vlaindic_gfx12-pcs branch September 22, 2025 11:17
systems-assistant Bot pushed a commit to ROCm/rocprofiler-sdk that referenced this pull request Sep 22, 2025
The GFX12 host-trap PC sampling support in SDK and V3.
Introducing parser tests specific to GFX12.

Co-authored-by: vlaindic_amdeng <vladimir.indic@amd.com>
[rocm-systems] ROCm/rocm-systems#186 (commit 63a723a)
sauverma93 pushed a commit that referenced this pull request Sep 26, 2025
The GFX12 host-trap PC sampling support in SDK and V3.
Introducing parser tests specific to GFX12.

Co-authored-by: vlaindic_amdeng <vladimir.indic@amd.com>
ryang-amd pushed a commit that referenced this pull request Nov 7, 2025
The GFX12 host-trap PC sampling support in SDK and V3.
Introducing parser tests specific to GFX12.

Co-authored-by: vlaindic_amdeng <vladimir.indic@amd.com>
ammallya pushed a commit that referenced this pull request Nov 17, 2025
Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>
ammallya pushed a commit that referenced this pull request Nov 18, 2025
Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>

[ROCm/amdsmi commit: b72cd22]
ammallya pushed a commit that referenced this pull request Nov 21, 2025
Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>

[ROCm/amdsmi commit: b72cd22]
ammallya pushed a commit that referenced this pull request Jan 21, 2026
…lt-dir (#186)

* rocshmem_config.h needs to be in a similar directory structure for
includes to work when building testers in build, and from an installed
library

* Do not change installed rocshmem.hpp
ammallya pushed a commit that referenced this pull request Jan 21, 2026
…lt-dir (#186)

* rocshmem_config.h needs to be in a similar directory structure for
includes to work when building testers in build, and from an installed
library

* Do not change installed rocshmem.hpp

[ROCm/rocshmem commit: 63a7989]
ammallya pushed a commit that referenced this pull request Jan 30, 2026
dayatsin-amd pushed a commit that referenced this pull request Apr 7, 2026
* Adding wmma counters

* add mi450 counters, changes from svaddire/MI450-Counters branch.

* add gfx1250 for CPC_CPC_TCIU_IDLE

---------

Co-authored-by: Sushma Vaddireddy <svaddire@amd.com>
Co-authored-by: Venkateshwar Reddy Kandula <venkateshwar.kandula1306@gmail.com>
ammallya pushed a commit that referenced this pull request Apr 9, 2026
ammallya pushed a commit that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants