Skip to content

Commit 6b8792c

Browse files
authored
[CUDA][HIP][TEST-E2E] Include the necessary environment paths during the test-e2e build for CUDA and HIP backends. (#12606)
Include the necessary environment paths during the test-e2e build for `CUDA` and `HIP` backends. The absence of the added path leads to the inability to locate libdevice for specific architectures, resulting in a failure. Below is the reported error when expected `CUDA_PATH` is missing ` clang++: error: cannot find libdevice for `sm_50`; provide path to different `CUDA` installation via '--cuda-path', or pass '-nocudalib' to build without linking with libdevice `
1 parent 00eebe1 commit 6b8792c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080

8181
llvm_config.with_environment("PATH", config.lit_tools_dir, append_path=True)
8282

83+
if "cuda:gpu" in config.sycl_devices:
84+
llvm_config.with_system_environment("CUDA_PATH")
85+
86+
if "hip:gpu" in config.sycl_devices:
87+
llvm_config.with_system_environment("ROCM_PATH")
88+
8389
# Configure LD_LIBRARY_PATH or corresponding os-specific alternatives
8490
if platform.system() == "Linux":
8591
config.available_features.add("linux")

0 commit comments

Comments
 (0)