[Openmp-commits] [PATCH] D152462: [OpenMP] Fix --libomptarget-nvptx-bc-path in tests

Joel E. Denny via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 8 11:05:42 PDT 2023


jdenny created this revision.
jdenny added reviewers: jhuber6, ye-luo, jdoerfert, tianshilei1992, JonChesterfield.
jdenny added a project: OpenMP.
Herald added subscribers: sunshaoce, mattd, gchakrabarti, asavonic, guansong, yaxunl.
Herald added a project: All.
jdenny requested review of this revision.
Herald added subscribers: openmp-commits, jplehr, sstefan1.

After D151324 <https://reviews.llvm.org/D151324>, which landed as 349c0aacb380 <https://reviews.llvm.org/rG349c0aacb38072a868421ce7c460514be57a3de7>, many libomptarget non-LTO
nvptx64 tests fail with errors like:

  clang: error: bitcode library '/tmp/llvm-project/build/runtimes/runtimes-bins/openmp/libomptarget/libomptarget-nvptx-sm_70.bc' does not exist

This patch updates the bc path.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152462

Files:
  openmp/libomptarget/test/lit.cfg


Index: openmp/libomptarget/test/lit.cfg
===================================================================
--- openmp/libomptarget/test/lit.cfg
+++ openmp/libomptarget/test/lit.cfg
@@ -120,7 +120,7 @@
     if config.cuda_libdir:
         config.test_flags += " -Wl,-rpath," + config.cuda_libdir
     if config.libomptarget_current_target.startswith('nvptx'):
-        config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir
+        config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir + '/DeviceRTL'
     if config.libomptarget_current_target.endswith('-LTO'):
         config.test_flags += " -foffload-lto"
     if config.libomptarget_current_target.endswith('-JIT-LTO') and evaluate_bool_env(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152462.529681.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230608/488a5c64/attachment-0001.bin>


More information about the Openmp-commits mailing list