Skip to content

Commit

Permalink
Account for missing GRBM_GUI_ACTIVE in roof-only mode (ROCm#103)
Browse files Browse the repository at this point in the history
Signed-off-by: colramos-amd <colramos@amd.com>
  • Loading branch information
coleramos425 committed Mar 5, 2024
1 parent c7c5a67 commit a44e07d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a44e07d

Please sign in to comment.