From b9ad8001948f62c7d0b21338539a0e5a711364fc Mon Sep 17 00:00:00 2001 From: "Elwazir, Ammar" Date: Tue, 4 Feb 2025 12:48:28 -0600 Subject: [PATCH] Tests: Scratch memory validate bug, summary validate bug (#187) Scratch memory validate bug, summary validate bug Co-authored-by: Ammar ELWazir --- tests/rocprofv3/summary/validate.py | 2 +- tests/scratch-memory-tracing/validate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rocprofv3/summary/validate.py b/tests/rocprofv3/summary/validate.py index 6f757c7..470f2b9 100644 --- a/tests/rocprofv3/summary/validate.py +++ b/tests/rocprofv3/summary/validate.py @@ -209,7 +209,7 @@ def test_summary_data(json_data): ) assert oitr.value.count == 2 elif itr.domain == "HIP_API": - assert itr.stats.count >= 2130 and itr.stats.count <= 2150 + assert itr.stats.count >= 2130 and itr.stats.count <= 2165 elif itr.domain == "MEMORY_COPY": # two threads + two memory copies (H2D + D2H). # HIP may decompose memory copies into more than one HSA memory copy diff --git a/tests/scratch-memory-tracing/validate.py b/tests/scratch-memory-tracing/validate.py index 8054c2e..addcdca 100755 --- a/tests/scratch-memory-tracing/validate.py +++ b/tests/scratch-memory-tracing/validate.py @@ -69,7 +69,7 @@ def test_data_structure(input_data): node_exists("names", sdk_data["buffer_records"]) node_exists("kernel_dispatch", sdk_data["buffer_records"]) - node_exists("memory_copies", sdk_data["buffer_records"], num_agents) + node_exists("memory_copies", sdk_data["buffer_records"], 0) node_exists("hsa_api_traces", sdk_data["buffer_records"]) node_exists("hip_api_traces", sdk_data["buffer_records"], 0) node_exists("retired_correlation_ids", sdk_data["buffer_records"])