[Openmp-commits] [PATCH] D107074: [libomptarget][nfc] Only set cuda-path for nvptx tests
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 30 15:01:34 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG567c8c7bfd7a: [libomptarget][nfc] Only set cuda-path for nvptx tests (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107074/new/
https://reviews.llvm.org/D107074
Files:
openmp/libomptarget/test/lit.cfg
Index: openmp/libomptarget/test/lit.cfg
===================================================================
--- openmp/libomptarget/test/lit.cfg
+++ openmp/libomptarget/test/lit.cfg
@@ -197,9 +197,9 @@
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))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107074.363215.patch
Type: text/x-patch
Size: 918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210730/9dd605fa/attachment.bin>
More information about the Openmp-commits
mailing list