From d0d378897aabc8d2800dd141fbd28e53297bb4e0 Mon Sep 17 00:00:00 2001 From: "Baraldi, Giovanni" Date: Fri, 20 Dec 2024 15:35:18 +0100 Subject: [PATCH] SWDEV-495749: Adding SIMD_UTILIZATION metric (#74) * SWDEV-495749: Adding SIMD_UTILIZATION metric * Fix mfmautil --------- Co-authored-by: Giovanni Baraldi [ROCm/rocprofiler-sdk commit: 200a8624bcc9ced6c46d15e99a9ee9e4c926f0e5] --- .../lib/rocprofiler-sdk/counters/yaml/counter_defs.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/yaml/counter_defs.yaml b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/yaml/counter_defs.yaml index e57f403b78..7cdf2523d8 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/yaml/counter_defs.yaml +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/yaml/counter_defs.yaml @@ -588,7 +588,7 @@ MfmaFlopsF64: MfmaUtil: architectures: gfx90a/gfx942/gfx941/gfx940: - expression: 100*reduce(SQ_VALU_MFMA_BUSY_CYCLES,sum)/(reduce(GRBM_GUI_ACTIVE,max)*CU_NUM) + expression: reduce(SQ_VALU_MFMA_BUSY_CYCLES,sum)/(reduce(GRBM_GUI_ACTIVE,max)*SIMD_NUM)*100 description: 'Unit: percent' RDATA1_SIZE: architectures: @@ -3929,6 +3929,11 @@ VALUUtilization: description: 'The percentage of active vector ALU threads in a wave. A lower number can mean either more thread divergence in a wave or that the work-group size is not a multiple of 64. Value range: 0% (bad), 100% (ideal - no thread divergence).' +SIMD_UTILIZATION: + architectures: + gfx942/gfx941/gfx940/gfx90a: + expression: reduce(SQ_BUSY_CU_CYCLES,sum)/reduce(GRBM_COUNT,max)/CU_NUM + description: 'Fraction of time the SIMDs are being utilized [0,1].' VFetchInsts: architectures: gfx942/gfx941/gfx906/gfx940/gfx908/gfx90a/gfx9/gfx900: