From 85cdc11f8b70aad42e7c728aaf8669ca34240c35 Mon Sep 17 00:00:00 2001 From: "Madsen, Jonathan" Date: Mon, 26 May 2025 22:39:59 -0500 Subject: [PATCH] Fix logic error in PR #410 (#414) Co-authored-by: Jonathan R. Madsen Co-authored-by: Ma, Bing --- tests/rocprofv3/counter-collection/input1/validate.py | 3 ++- .../rocprofv3/counter-collection/kernel_filtering/validate.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/rocprofv3/counter-collection/input1/validate.py b/tests/rocprofv3/counter-collection/input1/validate.py index dc5ec2fd93..82708fb56c 100644 --- a/tests/rocprofv3/counter-collection/input1/validate.py +++ b/tests/rocprofv3/counter-collection/input1/validate.py @@ -124,7 +124,8 @@ def test_validate_counter_collection_pmc1_json(json_data): sq_waves_values.append(record["value"]) # Check aggregate sum - assert sum(sq_waves_values) > 0, f"SQ_WAVES value is not > 0" + if agent["name"] not in skip_gfx: + assert sum(sq_waves_values) > 0, "SQ_WAVES value is not > 0" di_uniq = list(set(sorted(dispatch_ids))) # make sure the dispatch ids are unique and ordered diff --git a/tests/rocprofv3/counter-collection/kernel_filtering/validate.py b/tests/rocprofv3/counter-collection/kernel_filtering/validate.py index 819404dd54..abd1f376c0 100644 --- a/tests/rocprofv3/counter-collection/kernel_filtering/validate.py +++ b/tests/rocprofv3/counter-collection/kernel_filtering/validate.py @@ -113,7 +113,8 @@ def validate_json(json_data, counter_name, check_dispatch): values.append(record["value"]) # Check aggregate sum - assert sum(values) > 0, f"{counter_name} value is not > 0" + if agent["name"] not in skip_gfx: + assert sum(values) > 0, f"{counter_name} value is not > 0" if check_dispatch: di_uniq = list(set(sorted(dispatch_ids)))