From b1f41247a2042986c79d130a71dfa4e692662bff Mon Sep 17 00:00:00 2001 From: Stanley Tsang Date: Fri, 4 Jun 2021 09:46:04 -0600 Subject: [PATCH] Fixing install script so that invoking -r alone does not trigger rebuild (#382) [ROCm/rccl commit: 820a53287fd462fd0f96e7e7f320467f73e56959] --- projects/rccl/install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/projects/rccl/install.sh b/projects/rccl/install.sh index 62a22f43cf..04b900bbb2 100755 --- a/projects/rccl/install.sh +++ b/projects/rccl/install.sh @@ -123,6 +123,18 @@ check_exit_code( ) fi } +if [[ "$build_release" == true ]]; then + unit_test_path="./build/release/test/UnitTests" +else + unit_test_path="./build/debug/test/UnitTests" +fi + +if ($run_tests) && [[ -f $unit_test_path ]]; then + if [[ "$build_tests" == false ]]; then + clean_build=false + fi +fi + # ################################################# # prep # ################################################# @@ -135,7 +147,6 @@ if ($clean_build); then fi fi - # Create and go to the build directory. mkdir -p build; cd build