[Openmp-commits] [openmp] 567c8c7 - [libomptarget][nfc] Only set cuda-path for nvptx tests
Jon Chesterfield via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 30 15:01:22 PDT 2021
Author: Jon Chesterfield
Date: 2021-07-30T23:01:09+01:00
New Revision: 567c8c7bfd7a0bbafa84171e5edcc3e79fe5f8ca
URL: https://github.com/llvm/llvm-project/commit/567c8c7bfd7a0bbafa84171e5edcc3e79fe5f8ca
DIFF: https://github.com/llvm/llvm-project/commit/567c8c7bfd7a0bbafa84171e5edcc3e79fe5f8ca.diff
LOG: [libomptarget][nfc] Only set cuda-path for nvptx tests
Remove --cuda-path=CUDA_TOOLKIT_ROOT_DIR-NOTFOUND
from the invocation of non-nvptx test cases. Better signal
to noise ratio on other architectures.
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D107074
Added:
Modified:
openmp/libomptarget/test/lit.cfg
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index f1aa9176fb90..63bb8cec5231 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -197,9 +197,9 @@ for libomptarget_target in config.libomptarget_all_targets:
config.substitutions.append(("%clangxx", config.test_cxx_compiler))
config.substitutions.append(("%clang", config.test_c_compiler))
config.substitutions.append(("%openmp_flags", config.test_openmp_flags))
-if config.cuda_path:
- config.substitutions.append(("%cuda_flags", "--cuda-path=" + config.cuda_path))
+if config.libomptarget_current_target.startswith('nvptx') and config.cuda_path:
+ config.substitutions.append(("%cuda_flags", "--cuda-path=" + config.cuda_path))
else:
- config.substitutions.append(("%cuda_flags", ""))
+ config.substitutions.append(("%cuda_flags", ""))
config.substitutions.append(("%flags", config.test_flags))
config.substitutions.append(("%not", config.libomptarget_not))
More information about the Openmp-commits
mailing list