Bug fix for PR43 (#54)

This commit is contained in:
Yiltan
2025-03-19 09:39:07 -04:00
committed by GitHub
parent aa3121a967
commit 7d9e82fb34
2 changed files with 14 additions and 9 deletions
+11 -9
View File
@@ -111,15 +111,6 @@ include(ROCMCheckTargetIds)
rocm_setup_version(VERSION 2.0.0) rocm_setup_version(VERSION 2.0.0)
project(rocshmem VERSION 2.0.0 LANGUAGES CXX) project(rocshmem VERSION 2.0.0 LANGUAGES CXX)
###############################################################################
# TEST SUBDIRECTORIES
###############################################################################
add_subdirectory(tests)
if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
############################################################################### ###############################################################################
# CREATE ROCSHMEM LIBRARY # CREATE ROCSHMEM LIBRARY
############################################################################### ###############################################################################
@@ -211,7 +202,18 @@ if (NOT BUILD_TESTS_ONLY)
${IBVERBS_LIBRARIES} ${IBVERBS_LIBRARIES}
) )
endif() endif()
endif()
###############################################################################
# TEST SUBDIRECTORIES
###############################################################################
add_subdirectory(tests)
if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if (NOT BUILD_TESTS_ONLY)
############################################################################# #############################################################################
# INSTALL # INSTALL
############################################################################# #############################################################################
+3
View File
@@ -33,5 +33,8 @@ cmake \
-DUSE_HOST_SIDE_HDP_FLUSH=OFF \ -DUSE_HOST_SIDE_HDP_FLUSH=OFF \
-DBUILD_LOCAL_GPU_TARGET_ONLY=OFF \ -DBUILD_LOCAL_GPU_TARGET_ONLY=OFF \
-DBUILD_TESTS_ONLY=ON \ -DBUILD_TESTS_ONLY=ON \
-DBUILD_FUNCTIONAL_TESTS=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_UNIT_TESTS=OFF \
$src_path $src_path
cmake --build . --parallel 8 cmake --build . --parallel 8