[Openmp-commits] [openmp] 5df4923 - [OpenMP] Fix --libomptarget-nvptx-bc-path in tests

Joel E. Denny via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 8 12:10:08 PDT 2023


Author: Joel E. Denny
Date: 2023-06-08T15:09:35-04:00
New Revision: 5df492302e260fa2ce8e2b7f28cf5a48902b7f8a

URL: https://github.com/llvm/llvm-project/commit/5df492302e260fa2ce8e2b7f28cf5a48902b7f8a
DIFF: https://github.com/llvm/llvm-project/commit/5df492302e260fa2ce8e2b7f28cf5a48902b7f8a.diff

LOG: [OpenMP] Fix --libomptarget-nvptx-bc-path in tests

After D151324, which landed as 349c0aacb380, 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.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D152462

Added: 
    

Modified: 
    openmp/libomptarget/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index b268e46aeef5a..e3255b3523070 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -120,7 +120,7 @@ else: # Unices
     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(


        


More information about the Openmp-commits mailing list