Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ set(IS_DISABLED ON)
if(attdecoder_FOUND)
set(IS_DISABLED OFF)
endif()
if(ROCPROFILER_DISABLE_UNSTABLE_CTESTS)
set(IS_DISABLED ON)
endif()

rocprofiler_samples_get_preload_env(PRELOAD_ENV)
list(APPEND PRELOAD_ENV "ROCPROFILER_TRACE_DECODER_LIB_PATH=${attdecoder_LIB_DIR}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ if(attdecoder_FOUND)
set(IS_DISABLED OFF)
set(COMMON_PARAMS --att-library-path ${attdecoder_LIB_DIR} ${COMMON_PARAMS_NO_LIB})
endif()
if(ROCPROFILER_DISABLE_UNSTABLE_CTESTS)
set(IS_DISABLED ON)
endif()

# hsa multiqueue dependency test with lib path
rocprofiler_add_integration_execute_test(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def test_pass1_counters(pass1_counter_data):

# All counters in pass 1 should be SQ_WAVES
for row in pass1_counter_data:
assert row["Counter_Name"] == "SQ_WAVES", \
f"Expected SQ_WAVES in pass 1, got {row['Counter_Name']}"
assert (
row["Counter_Name"] == "SQ_WAVES"
), f"Expected SQ_WAVES in pass 1, got {row['Counter_Name']}"
assert int(row["Queue_Id"]) > 0
assert int(row["Process_Id"]) > 0
assert len(row["Kernel_Name"]) > 0
Expand All @@ -88,8 +89,9 @@ def test_pass2_counters(pass2_counter_data):

# All counters in pass 2 should be GRBM_COUNT
for row in pass2_counter_data:
assert row["Counter_Name"] == "GRBM_COUNT", \
f"Expected GRBM_COUNT in pass 2, got {row['Counter_Name']}"
assert (
row["Counter_Name"] == "GRBM_COUNT"
), f"Expected GRBM_COUNT in pass 2, got {row['Counter_Name']}"
assert int(row["Queue_Id"]) > 0
assert int(row["Process_Id"]) > 0
assert len(row["Kernel_Name"]) > 0
Expand All @@ -105,8 +107,9 @@ def test_same_kernel_count_both_passes(pass1_counter_data, pass2_counter_data):
pass2_dispatch_ids = set([int(row["Dispatch_Id"]) for row in pass2_counter_data])

# Both passes should have collected data for the same dispatches
assert pass1_dispatch_ids == pass2_dispatch_ids, \
f"Pass 1 and Pass 2 have different dispatch IDs. Pass1: {sorted(pass1_dispatch_ids)}, Pass2: {sorted(pass2_dispatch_ids)}"
assert (
pass1_dispatch_ids == pass2_dispatch_ids
), f"Pass 1 and Pass 2 have different dispatch IDs. Pass1: {sorted(pass1_dispatch_ids)}, Pass2: {sorted(pass2_dispatch_ids)}"


def test_counter_separation(pass1_counter_data, pass2_counter_data):
Expand All @@ -117,12 +120,17 @@ def test_counter_separation(pass1_counter_data, pass2_counter_data):

# Verify no overlap (each counter should only be in one pass)
overlap = pass1_counters & pass2_counters
assert len(overlap) == 0, \
f"Counters should not overlap between passes. Found {overlap} in both passes"
assert (
len(overlap) == 0
), f"Counters should not overlap between passes. Found {overlap} in both passes"

# Verify we have the expected counters
assert pass1_counters == {"SQ_WAVES"}, f"Expected only SQ_WAVES in pass 1, got {pass1_counters}"
assert pass2_counters == {"GRBM_COUNT"}, f"Expected only GRBM_COUNT in pass 2, got {pass2_counters}"
assert pass1_counters == {
"SQ_WAVES"
}, f"Expected only SQ_WAVES in pass 1, got {pass1_counters}"
assert pass2_counters == {
"GRBM_COUNT"
}, f"Expected only GRBM_COUNT in pass 2, got {pass2_counters}"


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def get_dims(df):
), f"{memalloc}"
assert get_dims(dispatch) == [3, 9], f"{dispatch}"
assert get_dims(dispatch_and_copy) == [5, 9], f"{dispatch_and_copy}"
assert get_dims(hip) == [14, 9], f"{hip}"
# HIP_API rows vary: extra hipGetDeviceProperties* may appear depending on runtime/environment
assert get_dims(hip) in ([14, 9], [15, 9]), f"{hip}"
assert get_dims(hip_and_marker) == expected_hip_and_marker_dims, f"{hip_and_marker}"
if get_dims(memalloc) == [2, 9]: # [2,9] when hip-runtime doesn't use vmem alloc.
assert get_dims(total) == [25, 9], f"{total}"
Expand Down
Loading