Skip GRBM_GUI_ACTIVE checker in --roof-only mode

Signed-off-by: coleramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 1b151e23a1]
This commit is contained in:
coleramos425
2023-05-30 13:30:39 -05:00
parent d1a41e2469
commit 6b4618882f
@@ -467,8 +467,9 @@ def eval_metric(dfs, dfs_type, sys_info, soc_spec, raw_pmc_df, debug):
Execute the expr string for each metric in the df.
"""
# confirm no illogical counter values
if (raw_pmc_df["pmc_perf"]["GRBM_GUI_ACTIVE"] == 0).any():
# confirm no illogical counter values (only consider non-roofline runs)
roof_only_run = (sys_info.ip_blocks == "roofline")
if not roof_only_run and (raw_pmc_df["pmc_perf"]["GRBM_GUI_ACTIVE"] == 0).any():
print("WARNING: Dectected GRBM_GUI_ACTIVE == 0\nHaulting execution.")
sys.exit(1)