Skip to content

Commit e57c205

Browse files
authored
[SYCL][CUDA] Set PI_CUDA_ENABLE_IMAGE_SUPPORT before running Image tests (intel/llvm-test-suite#702)
This allows to run Image tests currently supported by the CUDA BE even if the Image support is disabled by default. This follows intel#5256
1 parent 53b3375 commit e57c205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SYCL/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@
310310
gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be)
311311
gpu_check_on_linux_substitute = "| FileCheck %s"
312312

313+
if config.sycl_be == "cuda":
314+
gpu_run_substitute += "SYCL_PI_CUDA_ENABLE_IMAGE_SUPPORT=1 "
315+
313316
else:
314317
lit_config.warning("GPU device not used")
315318

0 commit comments

Comments
 (0)