Commit Graph

13501 Commits

Author SHA1 Message Date
Yang, Chun 505bb395ba Enabled RPB for Navi48 (#115)
* Enabled RPB for Navi48

* Fixing RPB addresses

* Removing non-Navi files

* Removing RPB enum not needed

[ROCm/aqlprofile commit: 5e99084425]
2025-07-01 22:05:28 +00:00
Yang, Chun 5e99084425 Enabled RPB for Navi48 (#115)
* Enabled RPB for Navi48

* Fixing RPB addresses

* Removing non-Navi files

* Removing RPB enum not needed
2025-07-01 22:05:28 +00:00
Baraldi, Giovanni cd5d5f8142 [rocprofv3] Fix ATT library path (#476)
* Fix library path

* Update docs

* Review comments

* Update source/bin/rocprofv3.py

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>

[ROCm/rocprofiler-sdk commit: c0c08b2f08]
2025-07-01 22:08:29 +02:00
Baraldi, Giovanni c0c08b2f08 [rocprofv3] Fix ATT library path (#476)
* Fix library path

* Update docs

* Review comments

* Update source/bin/rocprofv3.py

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
2025-07-01 22:08:29 +02:00
Ma, Bing 5b758bcdc4 [pmc_builder] Centralize the programming for GFX_INDEX and PERFMON_CNTL (#133)
Prepare multiple GC instances with different programming sequence for GFX_INDEX and PERFMON_CNTL.

[ROCm/aqlprofile commit: 7710e8bca3]
2025-07-01 09:22:46 -07:00
Ma, Bing 7710e8bca3 [pmc_builder] Centralize the programming for GFX_INDEX and PERFMON_CNTL (#133)
Prepare multiple GC instances with different programming sequence for GFX_INDEX and PERFMON_CNTL.
2025-07-01 09:22:46 -07:00
Nagaraj, Sriraksha a1ffe9be39 [SDK] Internal event id for AQL packet increased to 64-bit unsigned int (#380)
* event id to 64 bit size

* review comments

* review comments

* review comments

* fix

* handle exception

* fix formatting issue

* fix tests

[ROCm/rocprofiler-sdk commit: 1524ceb84d]
2025-06-30 17:54:37 -05:00
Nagaraj, Sriraksha 1524ceb84d [SDK] Internal event id for AQL packet increased to 64-bit unsigned int (#380)
* event id to 64 bit size

* review comments

* review comments

* review comments

* fix

* handle exception

* fix formatting issue

* fix tests
2025-06-30 17:54:37 -05:00
Madsen, Jonathan ce7d811719 [SDK] Fix buffer tracing stringify of stack-allocated char* buffer (#429)
* [SDK] Fix buffer tracing stringify of stack-allocated char* buffer

* Formatting

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: 3590ecc10e]
2025-06-30 17:51:26 -05:00
Madsen, Jonathan 3590ecc10e [SDK] Fix buffer tracing stringify of stack-allocated char* buffer (#429)
* [SDK] Fix buffer tracing stringify of stack-allocated char* buffer

* Formatting

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2025-06-30 17:51:26 -05:00
Madsen, Jonathan 09cd1ea073 [CI] Use rocprof-azure-gpuless-emu-runner-set for build-docs-from-source job (#493)
[ROCm/rocprofiler-sdk commit: 730b4e0a54]
2025-06-30 17:50:43 -05:00
Madsen, Jonathan 730b4e0a54 [CI] Use rocprof-azure-gpuless-emu-runner-set for build-docs-from-source job (#493) 2025-06-30 17:50:43 -05:00
Trowbridge, Ian e2bdebcb57 [rocprofv3] Add check for Stream Stack Pointer before use (#465)
* Added null check for stream_stack before get_stream_id is called

* Rename function and add check for stream strack before pop

* Removed empty check for stream stack and adding error log for get_stream_id in stream.cpp

[ROCm/rocprofiler-sdk commit: 0904b6e34d]
2025-06-30 17:49:48 -05:00
Trowbridge, Ian 0904b6e34d [rocprofv3] Add check for Stream Stack Pointer before use (#465)
* Added null check for stream_stack before get_stream_id is called

* Rename function and add check for stream strack before pop

* Removed empty check for stream stack and adding error log for get_stream_id in stream.cpp
2025-06-30 17:49:48 -05:00
Jonathan Luu 463d6b60d5 SWDEV-531400 Remove file reorganization backwards compatibility (rdc) 2025-06-30 15:20:26 -07:00
Madsen, Jonathan 145944dc30 [CI] Disable conversion script validation (#492)
- pytest fails when you selectively disable all the tests in the suite

[ROCm/rocprofiler-sdk commit: 99e262ca4a]
2025-06-30 17:02:53 -05:00
Madsen, Jonathan 99e262ca4a [CI] Disable conversion script validation (#492)
- pytest fails when you selectively disable all the tests in the suite
2025-06-30 17:02:53 -05:00
Kuricheti, Mythreya 0b003260fa [SDK] Filter agents that are not CPU or GPU (#374)
* Filter HSA agents

* Review comments

[ROCm/rocprofiler-sdk commit: 7842dfe839]
2025-06-30 15:54:48 -05:00
Kuricheti, Mythreya 7842dfe839 [SDK] Filter agents that are not CPU or GPU (#374)
* Filter HSA agents

* Review comments
2025-06-30 15:54:48 -05:00
Madsen, Jonathan fb51f0e5d4 [CI] Disable other unstable tests (#491)
Disable other unstable tests

- validation test_validate_counter_collection_pmc1 for conversion script
- increase timeout for tests/rocprofv3/pc-sampling execution phase

[ROCm/rocprofiler-sdk commit: f0fe04b95e]
2025-06-30 15:53:30 -05:00
Madsen, Jonathan f0fe04b95e [CI] Disable other unstable tests (#491)
Disable other unstable tests

- validation test_validate_counter_collection_pmc1 for conversion script
- increase timeout for tests/rocprofv3/pc-sampling execution phase
2025-06-30 15:53:30 -05:00
Madsen, Jonathan fff7146ab8 [CI] Disable other unstable tests (#490)
* Disable other unstable tests

* Disable validating test_total_runtime in kernel-tracing

* The disabled tests will be stabilized and re-enabled by ROCm 7.0.1 or ROCm 7.1 

[ROCm/rocprofiler-sdk commit: 69f71b8097]
2025-06-30 15:42:38 -05:00
Madsen, Jonathan 69f71b8097 [CI] Disable other unstable tests (#490)
* Disable other unstable tests

* Disable validating test_total_runtime in kernel-tracing

* The disabled tests will be stabilized and re-enabled by ROCm 7.0.1 or ROCm 7.1
2025-06-30 15:42:38 -05:00
Elwazir, Ammar 747763eadd Update sync-mainline.yaml
[ROCm/rocprofiler-register commit: 80fcffeb5a]
2025-06-30 15:24:35 -05:00
Elwazir, Ammar 80fcffeb5a Update sync-mainline.yaml 2025-06-30 15:24:35 -05:00
Elwazir, Ammar 3c986be896 Update sync-staging.yaml
[ROCm/rocprofiler-register commit: 57143911c3]
2025-06-30 15:24:13 -05:00
Elwazir, Ammar 57143911c3 Update sync-staging.yaml 2025-06-30 15:24:13 -05:00
Madsen, Jonathan 839c07c4aa [CI] Testing stability (#486)
* [CI] Testing Stability

- CMake option ROCPROFILER_DISABLE_UNSTABLE_CTESTS
  - used for tests which periodically fail around 1 out of every 10 runs
  - set to ON while instability remains, this needs to set to OFF in ROCm 7.1 or, ideally, ROCm 7.0.1
- Use FIXTURES_SETUP and FIXTURES_REQUIRED for some tests
- replace "threw an exception" with "${ROCPROFILER_DEFAULT_FAIL_REGEX}" for misc FAIL_REGULAR_EXPRESSIONS

* Remove contents of all EXCLUDE_{TESTS,LABEL}_REGEX from CI workflow

* Disable patch git step in code-coverage run

* Tweak spin time of reproducible runtime

* Removed patch git step in code-coverage run

* Update ROCPROFILER_DEFAULT_FAIL_REGEX

* Mark test-counter-collection tests as unstable

- add fixtures setup/required

* Remove ATTACHED_FILES_ON_FAIL

- CDash doesn't store enable downloading these properly anyway

* Relax collection-period fuzzing window

* Disable unstable collection-period test

- too unstable

* formatting

* Disable unstable device_counting_service_test.async_counters

* Suppress perfetto internal data race errors

* Switch code-coverage CI jobs to mi300 runner

* Timeout increases

* rocprofv3-test-rocpd updates

- add fixtures
- switch executable
- redefine input/output paths

* Revert code-coverage job to mi300a runner

* Update rocprofv3-test-rocpd-execute-multiproc

- reduce problem size

* disable multiproc rocpd

* Split code-coverage into separate workflow

- network issues cause this job to fail frequently
- when in a separate workflow, it can be restarted easily

* Fixtures for rocprofv3-test-trace-hip-in-libraries

* Disable unstable device_counting_service_test.sync_counters

* Potential fix for code scanning alert no. 171: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Switch code-coverage to run on rocprof-azure

- mi300a EMU runner set is unstable (network issues)

* tests/rocprofv3/pc-sampling SKIP_REGULAR_EXPRESSION

* Update rocprofv3-test-list-avail-trace-execute

- reduce log level and increase timeout

* rocprofv3: Prevent recursive call to rocprofv3_error_signal_handler + log chaining

* rocprofv3: Use ROCP_ERROR + std::exit instead of ROCP_FATAL

- should help with SKIP_REGULAR_EXPRESSION

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

[ROCm/rocprofiler-sdk commit: 640ca55ac0]
2025-06-30 15:07:37 -05:00
Madsen, Jonathan 640ca55ac0 [CI] Testing stability (#486)
* [CI] Testing Stability

- CMake option ROCPROFILER_DISABLE_UNSTABLE_CTESTS
  - used for tests which periodically fail around 1 out of every 10 runs
  - set to ON while instability remains, this needs to set to OFF in ROCm 7.1 or, ideally, ROCm 7.0.1
- Use FIXTURES_SETUP and FIXTURES_REQUIRED for some tests
- replace "threw an exception" with "${ROCPROFILER_DEFAULT_FAIL_REGEX}" for misc FAIL_REGULAR_EXPRESSIONS

* Remove contents of all EXCLUDE_{TESTS,LABEL}_REGEX from CI workflow

* Disable patch git step in code-coverage run

* Tweak spin time of reproducible runtime

* Removed patch git step in code-coverage run

* Update ROCPROFILER_DEFAULT_FAIL_REGEX

* Mark test-counter-collection tests as unstable

- add fixtures setup/required

* Remove ATTACHED_FILES_ON_FAIL

- CDash doesn't store enable downloading these properly anyway

* Relax collection-period fuzzing window

* Disable unstable collection-period test

- too unstable

* formatting

* Disable unstable device_counting_service_test.async_counters

* Suppress perfetto internal data race errors

* Switch code-coverage CI jobs to mi300 runner

* Timeout increases

* rocprofv3-test-rocpd updates

- add fixtures
- switch executable
- redefine input/output paths

* Revert code-coverage job to mi300a runner

* Update rocprofv3-test-rocpd-execute-multiproc

- reduce problem size

* disable multiproc rocpd

* Split code-coverage into separate workflow

- network issues cause this job to fail frequently
- when in a separate workflow, it can be restarted easily

* Fixtures for rocprofv3-test-trace-hip-in-libraries

* Disable unstable device_counting_service_test.sync_counters

* Potential fix for code scanning alert no. 171: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Switch code-coverage to run on rocprof-azure

- mi300a EMU runner set is unstable (network issues)

* tests/rocprofv3/pc-sampling SKIP_REGULAR_EXPRESSION

* Update rocprofv3-test-list-avail-trace-execute

- reduce log level and increase timeout

* rocprofv3: Prevent recursive call to rocprofv3_error_signal_handler + log chaining

* rocprofv3: Use ROCP_ERROR + std::exit instead of ROCP_FATAL

- should help with SKIP_REGULAR_EXPRESSION

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-06-30 15:07:37 -05:00
Chris Freehill f1bd89bd0d rocr/rocrtst: Update to c++17 2025-06-30 14:02:24 -05:00
Elwazir, Ammar 741ce1b8f3 Adding Manual Trigger for mainline and staging public sync (#489)
* Update sync-staging.yaml

* Update sync-mainline.yaml

[ROCm/rocprofiler-sdk commit: 5962747bf7]
2025-06-30 11:13:50 -05:00
Elwazir, Ammar 5962747bf7 Adding Manual Trigger for mainline and staging public sync (#489)
* Update sync-staging.yaml

* Update sync-mainline.yaml
2025-06-30 11:13:50 -05:00
xuchen-amd bfe24beec6 Remove cell backgrouund colors. (#778)
[ROCm/rocprofiler-compute commit: 222dbdc6bd]
2025-06-28 10:38:28 -04:00
xuchen-amd 222dbdc6bd Remove cell backgrouund colors. (#778) 2025-06-28 10:38:28 -04:00
Galantsev, Dmitrii 035cd2c371 fixup! CHORE - Ignore gersemi commit 2025-06-27 17:34:28 -05:00
Galantsev, Dmitrii f6023092c7 CI - Fix cmake-format
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-06-27 17:25:51 -05:00
Galantsev, Dmitrii a57edc0598 CHORE - Ignore gersemi commit
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-06-27 17:25:51 -05:00
Galantsev, Dmitrii 40545dcb49 CMAKE - Format with gersemi
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-06-27 17:25:51 -05:00
Galantsev, Dmitrii 680b7a8dd8 CMAKE - Add gersemi to replace cmake-format
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-06-27 17:25:51 -05:00
jamessiddeley-amd 60ace87e1a added 0400 analysis config yaml files (#779)
[ROCm/rocprofiler-compute commit: 1bb7bf4dd4]
2025-06-27 16:21:19 -04:00
jamessiddeley-amd 1bb7bf4dd4 added 0400 analysis config yaml files (#779) 2025-06-27 16:21:19 -04:00
Galantsev, Dmitrii e73eaf8115 Profiler - Remove rocprofiler-v1 remnants
Also force unset HSA_TOOLS_LIB so it doesn't break rocprofiler-sdk

Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-06-27 13:15:52 -05:00
vedithal-amd 86e243201e Fix SPI block counter limit (#780)
* Fix SPI counter collection limit

* Update counter collection limits from aqlprofile

* Remove special handling for MI 350 SPI pipe counters

[ROCm/rocprofiler-compute commit: 6e1bbb5efb]
2025-06-27 14:07:56 -04:00
vedithal-amd 6e1bbb5efb Fix SPI block counter limit (#780)
* Fix SPI counter collection limit

* Update counter collection limits from aqlprofile

* Remove special handling for MI 350 SPI pipe counters
2025-06-27 14:07:56 -04:00
Pranjal Swarup 0497b7934f Update RCCL-tests in examples folder (#261)
- Create a local copy for ROCm/rccl-tests for our examples.
- Update argument parsing to no longer use getopt_long.
- Workaround for Dyninst instrumentation.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>

[ROCm/rocprofiler-systems commit: 4e5029221b]
2025-06-27 11:44:13 -04:00
Pranjal Swarup 4e5029221b Update RCCL-tests in examples folder (#261)
- Create a local copy for ROCm/rccl-tests for our examples.
- Update argument parsing to no longer use getopt_long.
- Workaround for Dyninst instrumentation.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>
2025-06-27 11:44:13 -04:00
Honglei Huang d874b8003a rocr/driver: add SetTrapHandler API to driver interface
This commit introduces a new SetTrapHandler API to the driver interface

- Implemented SetTrapHandler in KfdDriver to set trap handlers using
  hsaKmtSetTrapHandler.
- Added a stub implementation of SetTrapHandler in XdnaDriver that returns
  HSA_STATUS_ERROR.
- Updated the driver interface in driver.h to include the new SetTrapHandler
  method.
- Modified GpuAgent to use driver().SetTrapHandler instead of directly calling
  hsaKmtSetTrapHandler.

Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
2025-06-27 23:32:53 +08:00
Bhardwaj, Gopesh 639064b28c SWDEV-539836 Do not parse private/internal members (#56)
[ROCm/roctracer commit: 074d9d95ec]
2025-06-27 20:47:30 +05:30
Bhardwaj, Gopesh 074d9d95ec SWDEV-539836 Do not parse private/internal members (#56) 2025-06-27 20:47:30 +05:30
Bhardwaj, Gopesh 03b8988d9b SWDEV-539836 Do not parse private/internal members (#71)
[ROCm/rocprofiler commit: 93e0c4a17c]
2025-06-27 20:46:14 +05:30