Skip to content

Commit

Permalink
[CUDA][HIP][TEST-E2E] Include the necessary environment paths during …
Browse files Browse the repository at this point in the history
…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
`
  • Loading branch information
mmoadeli authored Feb 15, 2024
1 parent 00eebe1 commit 6b8792c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sycl/test-e2e/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@

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

if "cuda:gpu" in config.sycl_devices:
llvm_config.with_system_environment("CUDA_PATH")

if "hip:gpu" in config.sycl_devices:
llvm_config.with_system_environment("ROCM_PATH")

# Configure LD_LIBRARY_PATH or corresponding os-specific alternatives
if platform.system() == "Linux":
config.available_features.add("linux")
Expand Down

0 comments on commit 6b8792c

Please sign in to comment.