From 92bb6aeaaa19917a21c47593338b485e50821787 Mon Sep 17 00:00:00 2001 From: Yiltan Date: Mon, 26 May 2025 16:50:22 -0400 Subject: [PATCH] [SWDEV-534546] Disable building tests in default build (#141) [ROCm/rocshmem commit: 9fe166c8e1852048a7aa135245acdba348a98f2b] --- projects/rocshmem/CMakeLists.txt | 4 ++-- projects/rocshmem/scripts/build_configs/ipc_single | 2 ++ projects/rocshmem/scripts/build_configs/ro_ipc | 2 ++ projects/rocshmem/scripts/build_configs/ro_net | 2 ++ projects/rocshmem/scripts/build_configs/ro_net_debug | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/rocshmem/CMakeLists.txt b/projects/rocshmem/CMakeLists.txt index abf710ee9d..1941f3453e 100644 --- a/projects/rocshmem/CMakeLists.txt +++ b/projects/rocshmem/CMakeLists.txt @@ -56,9 +56,9 @@ option(USE_SHARED_CTX "Request support for shared ctx between WG" OFF) option(USE_SINGLE_NODE "Enable single node support only." OFF) option(USE_HOST_SIDE_HDP_FLUSH "Use a polling thread to flush the HDP cache on the host." OFF) -option(BUILD_FUNCTIONAL_TESTS "Build the functional tests" ON) +option(BUILD_FUNCTIONAL_TESTS "Build the functional tests" OFF) option(BUILD_EXAMPLES "Build the examples" ON) -option(BUILD_UNIT_TESTS "Build the unit tests" ON) +option(BUILD_UNIT_TESTS "Build the unit tests" OFF) option(BUILD_TESTS_ONLY "Build only tests. Used to link agains rocSHMEM in a ROCm Release" OFF) option(BUILD_LOCAL_GPU_TARGET_ONLY "Build only for GPUs detected on this machine" OFF) diff --git a/projects/rocshmem/scripts/build_configs/ipc_single b/projects/rocshmem/scripts/build_configs/ipc_single index 55fb55b4a0..df9674f5f5 100755 --- a/projects/rocshmem/scripts/build_configs/ipc_single +++ b/projects/rocshmem/scripts/build_configs/ipc_single @@ -51,6 +51,8 @@ cmake \ -DUSE_SINGLE_NODE=ON \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF \ -DBUILD_LOCAL_GPU_TARGET_ONLY=OFF \ + -DBUILD_FUNCTIONAL_TESTS=ON \ + -DBUILD_UNIT_TESTS=ON \ $src_path cmake --build . --parallel 8 cmake --install . diff --git a/projects/rocshmem/scripts/build_configs/ro_ipc b/projects/rocshmem/scripts/build_configs/ro_ipc index 3b54fce159..e0fffed9fd 100755 --- a/projects/rocshmem/scripts/build_configs/ro_ipc +++ b/projects/rocshmem/scripts/build_configs/ro_ipc @@ -50,6 +50,8 @@ cmake \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF\ -DUSE_MANAGED_HEAP=OFF \ -DUSE_RO=ON \ + -DBUILD_FUNCTIONAL_TESTS=ON \ + -DBUILD_UNIT_TESTS=ON \ $src_path cmake --build . --parallel 8 cmake --install . diff --git a/projects/rocshmem/scripts/build_configs/ro_net b/projects/rocshmem/scripts/build_configs/ro_net index f252d31751..5ee99d12af 100755 --- a/projects/rocshmem/scripts/build_configs/ro_net +++ b/projects/rocshmem/scripts/build_configs/ro_net @@ -50,6 +50,8 @@ cmake \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF\ -DUSE_MANAGED_HEAP=OFF \ -DUSE_RO=ON \ + -DBUILD_FUNCTIONAL_TESTS=ON \ + -DBUILD_UNIT_TESTS=ON \ $src_path cmake --build . --parallel 8 cmake --install . diff --git a/projects/rocshmem/scripts/build_configs/ro_net_debug b/projects/rocshmem/scripts/build_configs/ro_net_debug index 351cb85184..758aff5715 100755 --- a/projects/rocshmem/scripts/build_configs/ro_net_debug +++ b/projects/rocshmem/scripts/build_configs/ro_net_debug @@ -48,6 +48,8 @@ cmake \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF\ -DUSE_MANAGED_HEAP=OFF \ -DUSE_RO=ON \ + -DBUILD_FUNCTIONAL_TESTS=ON \ + -DBUILD_UNIT_TESTS=ON \ $src_path cmake --build . --parallel 8 cmake --install .