Skip to content

[offload] Fix --libomptarget-nvptx-bc-path in tests#199382

Merged
shiltian merged 1 commit into
mainfrom
users/jdenny-ornl/offload-test-libomptarget-nvptx-bc-path
May 24, 2026
Merged

[offload] Fix --libomptarget-nvptx-bc-path in tests#199382
shiltian merged 1 commit into
mainfrom
users/jdenny-ornl/offload-test-libomptarget-nvptx-bc-path

Conversation

@jdenny-ornl
Copy link
Copy Markdown
Contributor

PR #198622, which landed as 3383f0d, causes 272 libomptarget :: nvptx64-nvidia-cuda test fails on my system with:

clang: error: bitcode library '/home/jdenny/llvm/build/\./lib/x86_64-unknown-linux-gnu/nvptx64-nvidia-cuda' does not exist

This patch fixes that.

PR #198622, which landed as 3383f0d, causes 272 `libomptarget ::
nvptx64-nvidia-cuda` test fails on my system with:

```
clang: error: bitcode library '/home/jdenny/llvm/build/\./lib/x86_64-unknown-linux-gnu/nvptx64-nvidia-cuda' does not exist
```

This patch fixes that.
@llvmorg-github-actions
Copy link
Copy Markdown

@llvm/pr-subscribers-offload

Author: Joel E. Denny (jdenny-ornl)

Changes

PR #198622, which landed as 3383f0d, causes 272 libomptarget :: nvptx64-nvidia-cuda test fails on my system with:

clang: error: bitcode library '/home/jdenny/llvm/build/\./lib/x86_64-unknown-linux-gnu/nvptx64-nvidia-cuda' does not exist

This patch fixes that.


Full diff: https://github.com/llvm/llvm-project/pull/199382.diff

1 Files Affected:

  • (modified) offload/test/lit.cfg (+1-1)
diff --git a/offload/test/lit.cfg b/offload/test/lit.cfg
index 14475c59fc20d..d768b45b69272 100644
--- a/offload/test/lit.cfg
+++ b/offload/test/lit.cfg
@@ -213,7 +213,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 + "/nvptx64-nvidia-cuda"
+        config.test_flags_clang += " --libomptarget-nvptx-bc-path=" + config.llvm_library_dir + "/nvptx64-nvidia-cuda"
     if config.libomptarget_current_target.endswith('-LTO'):
         config.test_flags += " -foffload-lto"
     if config.libomptarget_current_target.endswith('-JIT-LTO') and evaluate_bool_env(

@jdenny-ornl
Copy link
Copy Markdown
Contributor Author

If this patch looks right to you, please merge as I might be AFK for a while.

@shiltian shiltian merged commit 797dc31 into main May 24, 2026
12 checks passed
@shiltian shiltian deleted the users/jdenny-ornl/offload-test-libomptarget-nvptx-bc-path branch May 24, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants