Skip to content

Commit

Permalink
Include the necessary environment paths during the test-e2e build pro…
Browse files Browse the repository at this point in the history
…cess for CUDA or HIP backends.

The absence of the added path leads to the inability to locate libdevice for specific architectures, resulting in a failure.
  • Loading branch information
mmoadeli committed Feb 5, 2024
1 parent f7bdae8 commit 663a9d2
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 663a9d2

Please sign in to comment.