Skip to content

Commit

Permalink
Tests: Scratch memory validate bug, summary validate bug (#187)
Browse files Browse the repository at this point in the history
Scratch memory validate bug, summary validate bug

Co-authored-by: Ammar ELWazir <[email protected]>
  • Loading branch information
ammarwa and ammarwa authored Feb 4, 2025
1 parent 0c4a56c commit b9ad800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/rocprofv3/summary/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/scratch-memory-tracing/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit b9ad800

Please sign in to comment.