From 6a4321c4e30b44915b86ea4af9ef405db2f65a4e Mon Sep 17 00:00:00 2001 From: Mythreya Date: Fri, 27 Oct 2023 10:59:11 -0700 Subject: [PATCH] Add MI200/MI300 counters Revision - Addition [Impact SoC: MI200, MI300] Note: this set of counters are important help understand the bottleneck. 1. TCC_TAG_STALL a. Metric: TCC_TAG_STALL/TCC_CYCLE: percentage of time TCC tag lookup pipeline is stalled 2. TCP_TCR_TCP_STALL_CYCLES a. Metric: TCP_TCR_TCP_STALL_CYCLES/TCP_GATE_EN1: percentage of time TCP is stalled by TCR Revision - Addition [Impact SoC: MI300] 3. TCC_BUBBLE: a. Definition: Number of 128-byte read requests sent to EA b. Revised Metric #1, TCC-EA Read BW: ReadBW = 128 * TCC_BUBBLE + 64 * (TCC_EA0_RDREQ - TCC_BUBBLE - TCC_EA0_RDREQ_32B) + 32 * TCC_EA0_RDREQ_32B c. Revised Metric #2: TCC_EA Read Latency ReadLatency = TCC_EA0_RDREQ_LEVEL / (TCC_BUBBLE + TCC_EA0_RDREQ) /* [Fineprint] More detailed arithmetic: * ReadLatency = TCC_EA0_RDREQ_LEVEL / (#32B_req + #64B_req + #128B_req * 2) */ Change-Id: I0a2dfc1b64ca97023b1e8ba0f9830330b3034946 [ROCm/rocprofiler commit: 46e02a98666794821b7ddc5895115070c10ee4da] --- .../rocprofiler/src/core/counters/basic/gfx_metrics.xml | 1 + projects/rocprofiler/src/core/counters/derived/metrics.xml | 7 +++++++ .../src/core/counters/metrics/basic_counters.xml | 1 + .../src/core/counters/metrics/derived_counters.xml | 7 +++++++ projects/rocprofiler/test/tool/gfx_metrics.xml | 1 + projects/rocprofiler/test/tool/metrics.xml | 7 +++++++ 6 files changed, 24 insertions(+) diff --git a/projects/rocprofiler/src/core/counters/basic/gfx_metrics.xml b/projects/rocprofiler/src/core/counters/basic/gfx_metrics.xml index a2e1efc756..80b877b2f3 100755 --- a/projects/rocprofiler/src/core/counters/basic/gfx_metrics.xml +++ b/projects/rocprofiler/src/core/counters/basic/gfx_metrics.xml @@ -603,6 +603,7 @@ + diff --git a/projects/rocprofiler/src/core/counters/derived/metrics.xml b/projects/rocprofiler/src/core/counters/derived/metrics.xml index 83403437fb..33793b0f7e 100755 --- a/projects/rocprofiler/src/core/counters/derived/metrics.xml +++ b/projects/rocprofiler/src/core/counters/derived/metrics.xml @@ -213,6 +213,7 @@ + @@ -252,6 +253,7 @@ + @@ -342,6 +344,7 @@ + @@ -375,12 +378,16 @@ + + + + diff --git a/projects/rocprofiler/src/core/counters/metrics/basic_counters.xml b/projects/rocprofiler/src/core/counters/metrics/basic_counters.xml index 0cb7ed4b50..7e34a2d0f1 100755 --- a/projects/rocprofiler/src/core/counters/metrics/basic_counters.xml +++ b/projects/rocprofiler/src/core/counters/metrics/basic_counters.xml @@ -615,6 +615,7 @@ + diff --git a/projects/rocprofiler/src/core/counters/metrics/derived_counters.xml b/projects/rocprofiler/src/core/counters/metrics/derived_counters.xml index ce21d93bcf..0ba12b37da 100755 --- a/projects/rocprofiler/src/core/counters/metrics/derived_counters.xml +++ b/projects/rocprofiler/src/core/counters/metrics/derived_counters.xml @@ -173,6 +173,7 @@ + @@ -212,6 +213,7 @@ + @@ -372,6 +374,7 @@ + @@ -405,12 +408,16 @@ + + + + diff --git a/projects/rocprofiler/test/tool/gfx_metrics.xml b/projects/rocprofiler/test/tool/gfx_metrics.xml index 6e9e688eb2..81dc9dde74 100755 --- a/projects/rocprofiler/test/tool/gfx_metrics.xml +++ b/projects/rocprofiler/test/tool/gfx_metrics.xml @@ -616,6 +616,7 @@ + diff --git a/projects/rocprofiler/test/tool/metrics.xml b/projects/rocprofiler/test/tool/metrics.xml index 3750dcd338..fab7522810 100755 --- a/projects/rocprofiler/test/tool/metrics.xml +++ b/projects/rocprofiler/test/tool/metrics.xml @@ -166,6 +166,7 @@ + @@ -205,6 +206,7 @@ + @@ -292,6 +294,7 @@ + @@ -325,12 +328,16 @@ + + + +