Fix ROCPROFSYS_AMD_SMI_METRICS parsing (#178)

Fixes a bug where all the `ROCPROFSYSE_AMD_SMI_METRICS` values were being recorded by default.
Fixes bug with the 'all' and 'none' values giving an exception when specified for `ROCPROFSYSE_AMD_SMI_METRICS`.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
anujshuk-amd
2025-04-28 18:52:20 +05:30
committed by GitHub
parent 39f676aa71
commit 8d48048bd3
3 changed files with 29 additions and 23 deletions
+2 -1
View File
@@ -623,7 +623,8 @@ configure_settings(bool _init)
ROCPROFSYS_CONFIG_SETTING(std::string, "ROCPROFSYS_AMD_SMI_METRICS",
"amd-smi metrics to collect: busy, temp, power, "
"vcn_activity, jpeg_activity, mem_usage",
"vcn_activity, jpeg_activity, mem_usage."
"An empty value implies 'all' and 'none' suppresses all.",
"busy, temp, power, mem_usage", "backend", "amd_smi",
"rocm", "process_sampling", "advanced");