[offload] Fix --libomptarget-nvptx-bc-path in tests#199382
Merged
shiltian merged 1 commit intoMay 24, 2026
Merged
Conversation
|
@llvm/pr-subscribers-offload Author: Joel E. Denny (jdenny-ornl) ChangesPR #198622, which landed as 3383f0d, causes 272 This patch fixes that. Full diff: https://github.com/llvm/llvm-project/pull/199382.diff 1 Files Affected:
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(
|
Contributor
Author
|
If this patch looks right to you, please merge as I might be AFK for a while. |
jhuber6
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #198622, which landed as 3383f0d, causes 272
libomptarget :: nvptx64-nvidia-cudatest fails on my system with:This patch fixes that.