Files
TheRock/rocm-systems/projects/rocshmem/tests/CTestInstallRoot.cmake.in
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

62 lines
2.4 KiB
CMake

# CMake generated Testfile for ROCshmem installation
# Source directory: @CMAKE_SOURCE_DIR@/tests
# Install directory: ${CMAKE_CURRENT_LIST_DIR}
#
# This file enables CTest execution from the installation directory.
# Usage: cd <install>/bin/rocshmem && ctest -L quick
# Note: Test commands use relative paths from the working directory
# Working directory is automatically set to the subdirectory containing each CTestTestfile.cmake
# Tests reference files relative to their working directory:
# - Executables: ../../../../share/rocshmem/rocshmem_*_tests
# - Wrapper scripts: ../../../../share/rocshmem/test_wrapper.sh
# Launcher mode was determined at build/configure time
# USE_SLR_LAUNCHER is set based on whether MPI was found during configuration
set(USE_SLR_LAUNCHER @USE_SLR_LAUNCHER@)
if(NOT USE_SLR_LAUNCHER)
# MPI mode - find MPI executable
find_program(MPIEXEC_EXECUTABLE NAMES mpiexec mpirun)
if(NOT MPIEXEC_EXECUTABLE)
message(WARNING "MPI executable not found at install time, but tests were configured for MPI.")
message(WARNING "Set MPIEXEC_EXECUTABLE or ensure mpiexec/mpirun is in PATH")
message(WARNING "Alternatively, reconfigure with -DMPIEXEC_EXECUTABLE= to use SLR launcher")
return()
endif()
# MPI parameters (can be overridden via CMake variables or environment)
if(NOT DEFINED MPIEXEC_NUMPROC_FLAG)
set(MPIEXEC_NUMPROC_FLAG "-n")
endif()
# MCA parameters - read from environment or use defaults
if(DEFINED ENV{OMPI_MCA_pml})
set(OMPI_MCA_PML "$ENV{OMPI_MCA_pml}")
elseif(NOT DEFINED OMPI_MCA_PML)
set(OMPI_MCA_PML "ucx")
endif()
if(DEFINED ENV{OMPI_MCA_osc})
set(OMPI_MCA_OSC "$ENV{OMPI_MCA_osc}")
elseif(NOT DEFINED OMPI_MCA_OSC)
set(OMPI_MCA_OSC "ucx")
endif()
message(STATUS "MPI executable: ${MPIEXEC_EXECUTABLE}")
message(STATUS "MPI MCA parameters: pml=${OMPI_MCA_PML}, osc=${OMPI_MCA_OSC}")
else()
# SLR mode - no MPI required
message(STATUS "Using SLR (Simple Local Runtime) launcher - MPI not required")
endif()
# Subdirectories containing test definitions
@BUILD_FUNCTIONAL_TESTS_SUBDIRS@
@BUILD_UNIT_TESTS_SUBDIRS@
# Tier labels are available for monorepo CI filtering:
# ctest -L quick # Quick smoke tests
# ctest -L standard # Standard test suite
# ctest -L comprehensive # Comprehensive test suite
# ctest -L full # Full test suite