CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
72 lines
2.7 KiB
CMake
72 lines
2.7 KiB
CMake
#
|
|
# rocprofv3 HIP graph bubble regression tests
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(
|
|
rocprofiler-sdk-tests-rocprofv3-hip-graph-bubbles
|
|
LANGUAGES CXX
|
|
VERSION 0.0.0)
|
|
|
|
find_package(rocprofiler-sdk REQUIRED)
|
|
|
|
# These tests currently fail only on gfx1151. Detect the system architecture and disable
|
|
# the tests there, while leaving them enabled elsewhere.
|
|
rocprofiler_sdk_get_gfx_architectures(rocprofiler-sdk-hip-graph-bubbles-gfx-info ECHO)
|
|
set(HIP_GRAPH_BUBBLES_DISABLED OFF)
|
|
if("gfx1151" IN_LIST rocprofiler-sdk-hip-graph-bubbles-gfx-info)
|
|
set(HIP_GRAPH_BUBBLES_DISABLED ON)
|
|
endif()
|
|
|
|
set(HIP_GRAPH_BUBBLES_ENVIRONMENT)
|
|
if(DEFINED ENV{ROCM_PATH} AND EXISTS "$ENV{ROCM_PATH}/lib/rocm_sysdeps/lib")
|
|
list(APPEND HIP_GRAPH_BUBBLES_ENVIRONMENT
|
|
"LD_LIBRARY_PATH=$ENV{ROCM_PATH}/lib/rocm_sysdeps/lib:$ENV{LD_LIBRARY_PATH}")
|
|
endif()
|
|
|
|
function(add_hip_graph_bubbles_kernel_trace_test SUFFIX NUM_KERNELS NUM_ITERATIONS
|
|
TIMEOUT_SECS)
|
|
set(TEST_NAME "rocprofv3-test-hip-graph-bubbles-${SUFFIX}")
|
|
set(OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/hip-graph-bubbles-${SUFFIX}")
|
|
math(EXPR EXPECTED_DISPATCH_COUNT "${NUM_KERNELS} * ${NUM_ITERATIONS}")
|
|
|
|
rocprofiler_add_integration_execute_test(
|
|
${TEST_NAME}
|
|
COMMAND
|
|
$<TARGET_FILE:rocprofiler-sdk::rocprofv3> --hip-trace --kernel-trace -d
|
|
${OUTPUT_DIR} -o out --output-format csv pftrace --
|
|
$<TARGET_FILE:hip-graph-bubbles> ${NUM_KERNELS} ${NUM_ITERATIONS}
|
|
${NUM_ITERATIONS} 256 25
|
|
DEPENDS hip-graph-bubbles
|
|
TIMEOUT ${TIMEOUT_SECS}
|
|
LABELS "integration-tests"
|
|
DISABLED "${HIP_GRAPH_BUBBLES_DISABLED}"
|
|
ENVIRONMENT ${HIP_GRAPH_BUBBLES_ENVIRONMENT}
|
|
FIXTURES_SETUP ${TEST_NAME}
|
|
FAIL_REGULAR_EXPRESSION
|
|
"HSA_API|HIP_API|HIP_COMPILER_API|MARKER_CORE_API|MARKER_CONTROL_API|MARKER_NAME_API|KERNEL_DISPATCH|CODE_OBJECT"
|
|
)
|
|
|
|
rocprofiler_add_integration_validate_test(
|
|
${TEST_NAME}
|
|
TEST_PATHS validate.py
|
|
COPY conftest.py
|
|
CONFIG pytest.ini
|
|
ARGS --kernel-input
|
|
${CMAKE_CURRENT_BINARY_DIR}/hip-graph-bubbles-${SUFFIX}/out_kernel_trace.csv
|
|
--expected-dispatch-count
|
|
${EXPECTED_DISPATCH_COUNT}
|
|
--expected-kernels
|
|
${NUM_KERNELS}
|
|
--expected-iterations
|
|
${NUM_ITERATIONS}
|
|
TIMEOUT ${TIMEOUT_SECS}
|
|
LABELS "integration-tests"
|
|
DISABLED "${HIP_GRAPH_BUBBLES_DISABLED}"
|
|
FIXTURES_REQUIRED ${TEST_NAME})
|
|
endfunction()
|
|
|
|
add_hip_graph_bubbles_kernel_trace_test(k256-i20 256 20 60)
|
|
add_hip_graph_bubbles_kernel_trace_test(k256-i200 256 200 120)
|
|
add_hip_graph_bubbles_kernel_trace_test(k2000-i200 2000 200 180)
|