From fa31650298d2dae1e4c2eafe06202cee2d6f344a Mon Sep 17 00:00:00 2001 From: vedithal-amd Date: Mon, 22 Sep 2025 10:48:35 -0400 Subject: [PATCH] [rocprofiler-compute] make pmc files deterministic (#1066) * make pmc files deterministic --- .../rocprofiler-compute/src/rocprof_compute_soc/soc_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/rocprofiler-compute/src/rocprof_compute_soc/soc_base.py b/projects/rocprofiler-compute/src/rocprof_compute_soc/soc_base.py index 0c0265502d..761c3cc113 100644 --- a/projects/rocprofiler-compute/src/rocprof_compute_soc/soc_base.py +++ b/projects/rocprofiler-compute/src/rocprof_compute_soc/soc_base.py @@ -587,6 +587,8 @@ class OmniSoC_Base: # Create separate perfmon file for LEVEL counters without _sum suffix # TCC LEVEL counters are handled channel wise, so ignore them + # Convert set to sorted list for determinism in pmc txt files + counters = sorted(list(counters)) for counter in counters.copy(): if ( "LEVEL" in counter