Commit Graph

64562 Commits

Author SHA1 Message Date
David Galiffi 63ec6ec48d Additional AMD-SMI Updates (#149)
- Check AMDSMI header version to fix compilation failure with v2.0 header change
- Fix ROCM-SMI references in documentation and tests
- Check AMDSMI library version at runtime and output in logs
- Fix a possible exception occurring when an in-flight sample is outstanding while the component is shutting down.

[ROCm/rocprofiler-systems commit: 7bb45aba1c]
2025-03-31 11:07:50 -04:00
David Galiffi 7bb45aba1c Additional AMD-SMI Updates (#149)
- Check AMDSMI header version to fix compilation failure with v2.0 header change
- Fix ROCM-SMI references in documentation and tests
- Check AMDSMI library version at runtime and output in logs
- Fix a possible exception occurring when an in-flight sample is outstanding while the component is shutting down.
2025-03-31 11:07:50 -04:00
Lancelot SIX 6a4785f650 Fix Stochastic sampling trap handler
The trap handler should read the PERF_SNAPSHOT_DATA after all of
PERF_SNAPSHOT_DATA, PERF_SNAPSHOT_PC_LO and PERF_SNAPSHOT_PC_HI.  This
patch fixes this.

Change-Id: I7f78e16d7a0d8bfebb34906b4dff73c2eaeb5658
2025-03-31 10:20:19 +01:00
Lancelot SIX fff4455589 Fix Stochastic sampling trap handler
The trap handler should read the PERF_SNAPSHOT_DATA after all of
PERF_SNAPSHOT_DATA, PERF_SNAPSHOT_PC_LO and PERF_SNAPSHOT_PC_HI.  This
patch fixes this.

Change-Id: I7f78e16d7a0d8bfebb34906b4dff73c2eaeb5658


[ROCm/ROCR-Runtime commit: 6a4785f650]
2025-03-31 10:20:19 +01:00
Lancelot SIX eece210a5c trap_handler.s: Clear PERF_SNAPSHOT/HOST_TRAP before returning
Make sure to clear the HOST_TRAP and PERF_SNAPSHOT bits before returning
from the second level trap handler.  As those bits are sticky, this
ensures future re-entry to the trap handler (for context save for
example) will not be confused with a sampling trap.

Change-Id: I05e5e58779a650b324ac6e30d574dc6931340f13
Signed-off-by: Lancelot SIX <lancelot.six@amd.com>
2025-03-31 10:20:19 +01:00
Lancelot SIX 23254f7a1d trap_handler.s: Clear PERF_SNAPSHOT/HOST_TRAP before returning
Make sure to clear the HOST_TRAP and PERF_SNAPSHOT bits before returning
from the second level trap handler.  As those bits are sticky, this
ensures future re-entry to the trap handler (for context save for
example) will not be confused with a sampling trap.

Change-Id: I05e5e58779a650b324ac6e30d574dc6931340f13
Signed-off-by: Lancelot SIX <lancelot.six@amd.com>


[ROCm/ROCR-Runtime commit: eece210a5c]
2025-03-31 10:20:19 +01:00
Yuan, Perry 3bdca8b8b6 Implement CPU discovery support (#77)
* Implement CPU discovery support

SWDEV-482949:

enable the CPU model name info support to the RDC, rdci command
can detect GPU and CPU modules at the same time.
It will query the CPU info through the amdsmi interface like below:

1 GPUs found.
-----------------------------------------------------------------
GPU Index        Device Information
0               AMD Radeon PRO W7800
=================================================================
1 CPUs found.
-----------------------------------------------------------------
CPU Index        Device Information
0               AMD Ryzen Threadripper PRO 7995WX 96-Cores
-----------------------------------------------------------------

Change-Id: Ibc6533c9a61000cd86c45b1bae14c3eb6788c119
Signed-off-by: Perry Yuan <perry.yuan@amd.com>

* CMAKE - Add required version for amdsmi

Change-Id: I341a89351d196ec66cce215a5d1d3953302fcc66
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>

---------

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Co-authored-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-03-31 10:58:36 +08:00
Yuan, Perry f0f44d977f Implement CPU discovery support (#77)
* Implement CPU discovery support

SWDEV-482949:

enable the CPU model name info support to the RDC, rdci command
can detect GPU and CPU modules at the same time.
It will query the CPU info through the amdsmi interface like below:

1 GPUs found.
-----------------------------------------------------------------
GPU Index        Device Information
0               AMD Radeon PRO W7800
=================================================================
1 CPUs found.
-----------------------------------------------------------------
CPU Index        Device Information
0               AMD Ryzen Threadripper PRO 7995WX 96-Cores
-----------------------------------------------------------------

Change-Id: Ibc6533c9a61000cd86c45b1bae14c3eb6788c119
Signed-off-by: Perry Yuan <perry.yuan@amd.com>

* CMAKE - Add required version for amdsmi

Change-Id: I341a89351d196ec66cce215a5d1d3953302fcc66
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>

---------

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
Co-authored-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>

[ROCm/rdc commit: 3bdca8b8b6]
2025-03-31 10:58:36 +08:00
Galantsev, Dmitrii 80ee980cdb CMAKE - Fix build types
Addresses issue https://github.com/ROCm/rdc/issues/43

Change-Id: I456184358524a6feef4bf83eecb655678c3bc42d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-03-30 18:54:54 -05:00
Galantsev, Dmitrii 874a7b438f CMAKE - Fix build types
Addresses issue https://github.com/ROCm/rdc/issues/43

Change-Id: I456184358524a6feef4bf83eecb655678c3bc42d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: 80ee980cdb]
2025-03-30 18:54:54 -05:00
Fei Zheng ee5df82698 Support host-trap PC Sampling on CLI (beta version)
[ROCm/rocprofiler-compute commit: 9bacad0876]
2025-03-28 16:51:49 -06:00
Fei Zheng 9bacad0876 Support host-trap PC Sampling on CLI (beta version) 2025-03-28 16:51:49 -06:00
Arif, Maisam d7e8c02428 [SWDEV-524528] Nullptr check correction for TestErrCntRead (#38)
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

[ROCm/rocm_smi_lib commit: 91f30c5756]
2025-03-28 12:14:28 -05:00
Arif, Maisam 91f30c5756 [SWDEV-524528] Nullptr check correction for TestErrCntRead (#38)
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2025-03-28 12:14:28 -05:00
Baraldi, Giovanni 6301f46d13 SWDEV-520093+SWDEV-521137+SWDEV-523996: Fix for missing AMDGPU_HSA_V6 (#20)
* Adding AMDGPU_HSA_V6

* Fix segment

* Fix conflicts

* ident fix

* Symbol lookup fix

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
2025-03-28 10:02:49 -07:00
Baraldi, Giovanni 1a3e33774c SWDEV-520093+SWDEV-521137+SWDEV-523996: Fix for missing AMDGPU_HSA_V6 (#20)
* Adding AMDGPU_HSA_V6

* Fix segment

* Fix conflicts

* ident fix

* Symbol lookup fix

---------

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

[ROCm/rocprofiler commit: 6301f46d13]
2025-03-28 10:02:49 -07:00
Mallya, Ameya Keshava f7601f0fe5 Added KWS check for amd-mainline
[ROCm/hipother commit: fa53966bc5]
2025-03-28 09:22:20 -07:00
Mallya, Ameya Keshava fa53966bc5 Added KWS check for amd-mainline 2025-03-28 09:22:20 -07:00
Mallya, Ameya Keshava 265ef6e71a Added KWS check for amd-mainline (#9)
[ROCm/rocminfo commit: 5c8c974e71]
2025-03-28 09:19:43 -07:00
Mallya, Ameya Keshava 5c8c974e71 Added KWS check for amd-mainline (#9) 2025-03-28 09:19:43 -07:00
Mallya, Ameya Keshava 5dfa8fb922 Added KWS check for amd-mainline (#3)
[ROCm/rocm-core commit: ecb7d612c7]
2025-03-28 08:40:22 -07:00
Mallya, Ameya Keshava ecb7d612c7 Added KWS check for amd-mainline (#3) 2025-03-28 08:40:22 -07:00
Mallya, Ameya Keshava f17b7e8c3e Added KWS check for amd-mainline 2025-03-28 08:39:23 -07:00
Mallya, Ameya Keshava be0f948018 Added KWS check for amd-mainline
[ROCm/rocprofiler commit: f17b7e8c3e]
2025-03-28 08:39:23 -07:00
Mallya, Ameya Keshava 38e4d2c78b Added KWS check for amd-mainline
[ROCm/rocm-core commit: 5da6a07d56]
2025-03-28 08:38:44 -07:00
Mallya, Ameya Keshava 5da6a07d56 Added KWS check for amd-mainline 2025-03-28 08:38:44 -07:00
Mallya, Ameya Keshava 6211ce32f4 Added KWS check for amd-mainline
[ROCm/hip commit: 42419ff0d6]
2025-03-28 08:28:26 -07:00
Mallya, Ameya Keshava 42419ff0d6 Added KWS check for amd-mainline 2025-03-28 08:28:26 -07:00
Mallya, Ameya Keshava 05c81b6855 Added KWS check for amd-mainline
Signed-off-by: Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>
2025-03-28 08:27:05 -07:00
Mallya, Ameya Keshava 74b69e1840 Added KWS check for amd-mainline
Signed-off-by: Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>

[ROCm/ROCR-Runtime commit: 05c81b6855]
2025-03-28 08:27:05 -07:00
Mallya, Ameya Keshava 4067831731 Added KWS check for amd-mainline (#140) 2025-03-28 08:23:38 -07:00
Mallya, Ameya Keshava 05d4974836 Added KWS check for amd-mainline (#140)
[ROCm/rdc commit: 4067831731]
2025-03-28 08:23:38 -07:00
Mallya, Ameya Keshava 56c4dc84f0 Added KWS check for amd-mainline
[ROCm/rocprofiler-sdk commit: b0563f4590]
2025-03-28 08:13:07 -07:00
Mallya, Ameya Keshava b0563f4590 Added KWS check for amd-mainline 2025-03-28 08:13:07 -07:00
Mallya, Ameya Keshava 76e4f02aaf Added KWS check for amd-mainline
[ROCm/rocm_smi_lib commit: fb8d0c256b]
2025-03-28 08:10:45 -07:00
Mallya, Ameya Keshava fb8d0c256b Added KWS check for amd-mainline 2025-03-28 08:10:45 -07:00
Mallya, Ameya Keshava 4c82f5e5bd Added KWS check for amd-mainline
[ROCm/hip-tests commit: b41bc66424]
2025-03-28 08:07:58 -07:00
Mallya, Ameya Keshava b41bc66424 Added KWS check for amd-mainline 2025-03-28 08:07:58 -07:00
Mallya, Ameya Keshava 594c7e6704 Adding KWS check for amd-mainline
[ROCm/clr commit: 24184e151c]
2025-03-28 08:05:47 -07:00
Mallya, Ameya Keshava 24184e151c Adding KWS check for amd-mainline 2025-03-28 08:05:47 -07:00
Ben Richard b0844b42bb Read Accum_VGPR_Count from rocprof output if provided (#645)
[ROCm/rocprofiler-compute commit: 9bd45f5135]
2025-03-28 10:43:24 -04:00
Ben Richard 9bd45f5135 Read Accum_VGPR_Count from rocprof output if provided (#645) 2025-03-28 10:43:24 -04:00
MartinezFernandez, Juan 966157cd5b Remove PCH code: the code related to PCH is dead and not used (#66)
cherry-pick of compute/ec/clr/+/1184122

Co-authored-by: Juan Manuel Martinez Caamaño <juamarti@amd.com>

[ROCm/clr commit: f580632174]
2025-03-28 10:36:19 +01:00
MartinezFernandez, Juan f580632174 Remove PCH code: the code related to PCH is dead and not used (#66)
cherry-pick of compute/ec/clr/+/1184122

Co-authored-by: Juan Manuel Martinez Caamaño <juamarti@amd.com>
2025-03-28 10:36:19 +01:00
Nagaraj, Sriraksha 2c92e99d16 fix changelog (#322)
[ROCm/rocprofiler-sdk commit: 10a16aacbf]
2025-03-28 12:11:42 +05:30
Nagaraj, Sriraksha 10a16aacbf fix changelog (#322) 2025-03-28 12:11:42 +05:30
Galantsev, Dmitrii bdb2367010 RVS - Add long-running tests
Change-Id: Iddeb7f2d4fdcd69d7ac1ae94b2fa128ee3011b1a
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-03-27 23:42:56 -05:00
Galantsev, Dmitrii e80760c890 RVS - Add long-running tests
Change-Id: Iddeb7f2d4fdcd69d7ac1ae94b2fa128ee3011b1a
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: bdb2367010]
2025-03-27 23:42:56 -05:00
Galantsev, Dmitrii 58350a8bb8 Profiler - Remove bootstrap link
Change-Id: Ieea57515d77c2d521d95568c3bc2660cc829d829
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2025-03-27 23:29:30 -05:00
Galantsev, Dmitrii 3273e2993b Profiler - Remove bootstrap link
Change-Id: Ieea57515d77c2d521d95568c3bc2660cc829d829
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: 58350a8bb8]
2025-03-27 23:29:30 -05:00