Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
[SYCL][CUDA] Set PI_CUDA_ENABLE_IMAGE_SUPPORT before running Image te…
Browse files Browse the repository at this point in the history
…sts (#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/llvm#5256
  • Loading branch information
pgorlani committed Jan 18, 2022
1 parent 4dd90b8 commit 24faf9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@
gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be)
gpu_check_on_linux_substitute = "| FileCheck %s"

if config.sycl_be == "cuda":
gpu_run_substitute += "SYCL_PI_CUDA_ENABLE_IMAGE_SUPPORT=1 "

else:
lit_config.warning("GPU device not used")

Expand Down

0 comments on commit 24faf9d

Please sign in to comment.