Profiler - Add partition support

NOTE: GPU ordering used is not the same as in HSA/HIP.

GPUs are ordered via amdsmi and then GPU_ID fields are compared to map
GPU partitions to each other.

Change-Id: If379214f5281d7d5ee98515b3e5ba7affc2e2197
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
Galantsev, Dmitrii
2025-05-21 18:40:15 -05:00
committed by Galantsev, Dmitrii
parent 2adc8f82c6
commit 85b619b2f0
9 changed files with 172 additions and 137 deletions
+2
View File
@@ -173,6 +173,7 @@ typedef enum {
RDC_FI_TARGET_GRAPHICS_VERSION, //!< Target graphics version
RDC_FI_NUM_OF_COMPUTE_UNITS, //!< Number of compute units
RDC_FI_UUID, //!< Device UUID
RDC_FI_GPU_PARTITION_COUNT,
/**
* @brief Frequency related fields
@@ -344,6 +345,7 @@ typedef enum {
RDC_FI_PROF_CPF_CPF_TCIU_STALL,
RDC_FI_PROF_SIMD_UTILIZATION,
RDC_FI_PROF_UUID,
RDC_FI_PROF_KFD_ID,
/**
* @brief Raw XGMI counter events