From d42406be178b0affe0b6003bb5ce6380cb1889d7 Mon Sep 17 00:00:00 2001 From: Wenkai Du Date: Mon, 20 May 2019 16:51:14 +0000 Subject: [PATCH] By default will not build test program [ROCm/rccl commit: e517dbed5c03c94100198521feee935f59a1e98d] --- projects/rccl/CMakeLists.txt | 2 +- projects/rccl/install.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/rccl/CMakeLists.txt b/projects/rccl/CMakeLists.txt index fec673021b..6fbe58af90 100644 --- a/projects/rccl/CMakeLists.txt +++ b/projects/rccl/CMakeLists.txt @@ -17,7 +17,7 @@ include(ROCMSetupVersion) include(ROCMInstallSymlinks) include(ROCMCreatePackage) -option(BUILD_TESTS "Build test programs" ON) +option(BUILD_TESTS "Build test programs" OFF) # In order to support function calls within the kernel, we must use hcc as the # compiler diff --git a/projects/rccl/install.sh b/projects/rccl/install.sh index 0069c5bce5..a96261b4bc 100755 --- a/projects/rccl/install.sh +++ b/projects/rccl/install.sh @@ -60,7 +60,11 @@ while true; do rm -rf build mkdir build cd build +if ($run_tests); then +CXX=$ROCM_PATH/hcc cmake -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$RCCL_INSTALL .. +else CXX=$ROCM_PATH/hcc cmake -DCMAKE_INSTALL_PREFIX=$RCCL_INSTALL .. +fi make -j 8 install if ($run_tests); then