diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 65307be2bb641..10aa2bc257cf8 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -541,6 +541,10 @@ def open_check_file(file_name): else: config.substitutions.append(("%hip_options", "")) +# Add ROCM_PATH from system environment, this is used by clang to find ROCm +# libraries in non-standard installation locations. +llvm_config.with_system_environment("ROCM_PATH") + # Check for OpenCL ICD if config.opencl_libs_dir: config.opencl_libs_dir = quote_path(config.opencl_libs_dir)