[llvm] [OpenMP] Fix incorrect CUDA bc path after library change (PR #157547)

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 13:46:34 PDT 2025


================
@@ -169,7 +169,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_clang += " --libomptarget-nvptx-bc-path=" + config.llvm_library_intdir
+        config.test_flags_clang += " --libomptarget-nvptx-bc-path=" + config.llvm_library_intdir + "/nvptx64-nvidia-cuda"
----------------
jdenny-ornl wrote:

For me, `config.llvm_library_intdir` is `/home/jdenny/llvm/build/lib`.  But the file that's needed is `/home/jdenny/llvm/build/runtimes/runtimes-nvptx64-nvidia-cuda-bins/openmp/device/libomptarget-nvptx.bc`.  So the above doesn't fix the problem.

https://github.com/llvm/llvm-project/pull/157547


More information about the llvm-commits mailing list