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

Scratch memory validate bug, summary validate bug

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
이 커밋은 다음에 포함됨:
Elwazir, Ammar그리고Ammar ELWazir 작성하고 GitHub가 2025-02-04 12:48:28 -06:00를 커밋함
1 부모 0c4a56c6bb
커밋 b9ad800194
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"])