From c4b81768dfd8893bc6f3fa09a453cf958e742b8f Mon Sep 17 00:00:00 2001 From: Yiltan Date: Wed, 19 Mar 2025 09:39:07 -0400 Subject: [PATCH] Bug fix for PR43 (#54) [ROCm/rocshmem commit: 7d9e82fb3415ffb4ede76216c5f61a6e729dfeab] --- projects/rocshmem/CMakeLists.txt | 20 ++++++++++--------- .../scripts/build_configs/ipc_tests_only | 3 +++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/projects/rocshmem/CMakeLists.txt b/projects/rocshmem/CMakeLists.txt index 611e501750..599aeada61 100644 --- a/projects/rocshmem/CMakeLists.txt +++ b/projects/rocshmem/CMakeLists.txt @@ -111,15 +111,6 @@ include(ROCMCheckTargetIds) rocm_setup_version(VERSION 2.0.0) project(rocshmem VERSION 2.0.0 LANGUAGES CXX) -############################################################################### -# TEST SUBDIRECTORIES -############################################################################### -add_subdirectory(tests) - -if (BUILD_EXAMPLES) - add_subdirectory(examples) -endif() - ############################################################################### # CREATE ROCSHMEM LIBRARY ############################################################################### @@ -211,7 +202,18 @@ if (NOT BUILD_TESTS_ONLY) ${IBVERBS_LIBRARIES} ) endif() +endif() +############################################################################### +# TEST SUBDIRECTORIES +############################################################################### +add_subdirectory(tests) + +if (BUILD_EXAMPLES) + add_subdirectory(examples) +endif() + +if (NOT BUILD_TESTS_ONLY) ############################################################################# # INSTALL ############################################################################# diff --git a/projects/rocshmem/scripts/build_configs/ipc_tests_only b/projects/rocshmem/scripts/build_configs/ipc_tests_only index 5be1ecbfe3..d725da97ef 100755 --- a/projects/rocshmem/scripts/build_configs/ipc_tests_only +++ b/projects/rocshmem/scripts/build_configs/ipc_tests_only @@ -33,5 +33,8 @@ cmake \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF \ -DBUILD_LOCAL_GPU_TARGET_ONLY=OFF \ -DBUILD_TESTS_ONLY=ON \ + -DBUILD_FUNCTIONAL_TESTS=ON \ + -DBUILD_EXAMPLES=ON \ + -DBUILD_UNIT_TESTS=OFF \ $src_path cmake --build . --parallel 8