Tests: Scratch memory validate bug, summary validate bug (#187)

Scratch memory validate bug, summary validate bug

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>

[ROCm/rocprofiler-sdk commit: b9ad800194]
このコミットが含まれているのは:
Elwazir, Ammar
2025-02-04 12:48:28 -06:00
committed by GitHub
コミット 08247a9056
2個のファイルの変更2行の追加2行の削除
+1 -1
ファイルの表示
@@ -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
+1 -1
ファイルの表示
@@ -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"])