From 7a8bf7f720b0c8a236046406b56f78d2fa00de70 Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Tue, 5 Mar 2024 10:43:24 -0600 Subject: [PATCH] Account for missing GRBM_GUI_ACTIVE in roof-only mode (#103) Signed-off-by: colramos-amd [ROCm/rocprofiler-compute commit: a44e07d9281deceadf137bcd1ed6b715b0a7d343] --- projects/rocprofiler-compute/src/utils/parser.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler-compute/src/utils/parser.py b/projects/rocprofiler-compute/src/utils/parser.py index 680fb9130d..40791db866 100644 --- a/projects/rocprofiler-compute/src/utils/parser.py +++ b/projects/rocprofiler-compute/src/utils/parser.py @@ -675,12 +675,11 @@ def eval_metric(dfs, dfs_type, sys_info, raw_pmc_df, debug): roof_only_run = sys_info.ip_blocks == "roofline" rocscope_run = sys_info.ip_blocks == "rocscope" if ( - not rocscope_run - and not roof_only_run + (not rocscope_run and not roof_only_run) + and hasattr(raw_pmc_df["pmc_perf"], "GRBM_GUI_ACTIVE") and (raw_pmc_df["pmc_perf"]["GRBM_GUI_ACTIVE"] == 0).any() ): - print("WARNING: Dectected GRBM_GUI_ACTIVE == 0\nHaulting execution.") - sys.exit(1) + error("Dectected GRBM_GUI_ACTIVE == 0\nHaulting execution.") ammolite__se_per_gpu = sys_info.se_per_gpu ammolite__pipes_per_gpu = sys_info.pipes_per_gpu