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
77 lines
2.7 KiB
CMake
77 lines
2.7 KiB
CMake
#
|
|
# rocprofv3 tool tests for collection period
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(
|
|
rocprofiler-sdk-tests-rocprofv3-collection-period
|
|
LANGUAGES CXX
|
|
VERSION 0.0.0)
|
|
|
|
if(ROCPROFILER_MEMCHECK STREQUAL "ThreadSanitizer")
|
|
set(IS_THREAD_SANITIZER ON)
|
|
else()
|
|
set(IS_THREAD_SANITIZER OFF)
|
|
endif()
|
|
|
|
find_package(rocprofiler-sdk REQUIRED)
|
|
|
|
string(REPLACE "LD_PRELOAD=" "ROCPROF_PRELOAD=" PRELOAD_ENV
|
|
"${ROCPROFILER_MEMCHECK_PRELOAD_ENV}")
|
|
|
|
set(collection-period-env "${PRELOAD_ENV}" ROCPROF_COLLECTION_PERIOD_TESTING=true)
|
|
|
|
rocprofiler_configure_pytest_files(CONFIG pytest.ini COPY validate.py conftest.py)
|
|
|
|
##########################################################################################
|
|
#
|
|
# Command line input
|
|
#
|
|
##########################################################################################
|
|
|
|
rocprofiler_add_integration_execute_test(
|
|
rocprofv3-test-collection-period
|
|
COMMAND
|
|
$<TARGET_FILE:rocprofiler-sdk::rocprofv3> --runtime-trace --summary -d
|
|
${CMAKE_CURRENT_BINARY_DIR}/collection-period -o out --output-format csv json
|
|
pftrace otf2 --log-level warning --collection-period 0:1:1 1:1:2 0.5:0.5:0
|
|
--collection-period-unit sec -- $<TARGET_FILE:reproducible-runtime> 5000 4
|
|
DEPENDS reproducible-runtime
|
|
TIMEOUT 45
|
|
LABELS "integration-tests"
|
|
PRELOAD "${PRELOAD_ENV}"
|
|
ENVIRONMENT "ROCPROF_COLLECTION_PERIOD_TESTING=true"
|
|
FIXTURES_SETUP rocprofv3-test-collection-period
|
|
UNSTABLE)
|
|
|
|
rocprofiler_add_integration_validate_test(
|
|
rocprofv3-test-collection-period
|
|
TEST_PATHS validate.py
|
|
COPY conftest.py
|
|
CONFIG pytest.ini
|
|
ARGS --json-input
|
|
${CMAKE_CURRENT_BINARY_DIR}/collection-period/out_results.json
|
|
--pftrace-input
|
|
${CMAKE_CURRENT_BINARY_DIR}/collection-period/out_results.pftrace
|
|
--otf2-input
|
|
${CMAKE_CURRENT_BINARY_DIR}/collection-period/out_results.otf2
|
|
--collection-period-input
|
|
${CMAKE_CURRENT_BINARY_DIR}/collection-period/out_collection_periods.log
|
|
TIMEOUT 45
|
|
LABELS "integration-tests"
|
|
FIXTURES_REQUIRED rocprofv3-test-collection-period
|
|
UNSTABLE)
|
|
|
|
# Conflict: --selected-regions + --collection-period should fail
|
|
rocprofiler_add_integration_execute_test(
|
|
rocprofv3-test-collection-period-selected-regions-conflict-will-fail
|
|
COMMAND
|
|
$<TARGET_FILE:rocprofiler-sdk::rocprofv3> --selected-regions --collection-period
|
|
0:1:1 --collection-period-unit sec -- $<TARGET_FILE:reproducible-runtime> 100 1
|
|
DEPENDS reproducible-runtime
|
|
TIMEOUT 45
|
|
LABELS "integration-tests"
|
|
WILL_FAIL
|
|
FAIL_REGULAR_EXPRESSION
|
|
"--selected-regions and --collection-period are mutually exclusive")
|