[Offload][lit] Link against SPIR-V DeviceRTL if present#180030
[Offload][lit] Link against SPIR-V DeviceRTL if present#180030
Conversation
9d16d55 to
e7fe617
Compare
Signed-off-by: Nick Sarnie <[email protected]>
|
@llvm/pr-subscribers-offload Author: Nick Sarnie (sarnex) ChangesRight now if we run Don't pass that, but also don't pass 1 Files Affected:
diff --git a/offload/test/lit.cfg b/offload/test/lit.cfg
index 0d5a9c95c1d95..898258f3e3cd0 100644
--- a/offload/test/lit.cfg
+++ b/offload/test/lit.cfg
@@ -166,7 +166,8 @@ elif config.operating_system == 'Darwin':
config.test_flags += " -Wl,-rpath," + config.library_dir
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
else: # Unices
- if config.libomptarget_current_target != "nvptx64-nvidia-cuda":
+ if config.libomptarget_current_target != "nvptx64-nvidia-cuda" and \
+ not config.libomptarget_current_target.startswith('spirv'):
config.test_flags += " -nogpulib"
config.test_flags += " -Wl,-rpath," + config.library_dir
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
@@ -214,7 +215,7 @@ def add_libraries(source):
if "gpu" not in config.available_features:
return source
if "intelgpu" in config.available_features:
- # There is no DeviceRTL for Intel yet and libc doesn't work.
+ # SPIR-V uses an out-of-tree linker and libc doesn't work.
return source
if config.libomptarget_has_libc:
return source + " -Xoffload-linker -lc " + \
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/225/builds/2031 Here is the relevant piece of the build log for the reference |
|
I thought we linked the |
|
We aren't building the DeviceRTL yet on the buildbot. Let me revert this so I can merge it at the same time as |
…esent" (#180211) Reverts llvm/llvm-project#180030 Need to make changes to buildbot first
Right now if we run `check-offload` for SPIR-V the DeviceRTL isn't used because we pass `-nogpulib`. Don't pass that, but also don't pass `--libomptarget-spirv-bc-path` yet because the DeviceRTL is brand new so we don't want to error if it's not present. Signed-off-by: Nick Sarnie <[email protected]>
…m#180211) Reverts llvm#180030 Need to make changes to buildbot first
Right now if we run `check-offload` for SPIR-V the DeviceRTL isn't used because we pass `-nogpulib`. Don't pass that, but also don't pass `--libomptarget-spirv-bc-path` yet because the DeviceRTL is brand new so we don't want to error if it's not present. Signed-off-by: Nick Sarnie <[email protected]>
…m#180211) Reverts llvm#180030 Need to make changes to buildbot first
Right now if we run
check-offloadfor SPIR-V the DeviceRTL isn't used because we pass-nogpulib.Don't pass that, but also don't pass
--libomptarget-spirv-bc-pathyet because the DeviceRTL is brand new so we don't want to error if it's not present.