diff --git a/sycl/test-e2e/bindless_images/lit.local.cfg b/sycl/test-e2e/bindless_images/lit.local.cfg index 55d50ddc896ed..d935a28957f9a 100644 --- a/sycl/test-e2e/bindless_images/lit.local.cfg +++ b/sycl/test-e2e/bindless_images/lit.local.cfg @@ -22,6 +22,3 @@ if platform.system() == "Windows": if cl_options: dx12libs = ['/clang:' + l for l in dx12libs] config.substitutions.append(("%link-directx", ' '.join(dx12libs))) - -if config.vulkan_found == "TRUE": - config.available_features.add("vulkan") diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index fe7810a12f694..59f8e890fed8e 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -605,6 +605,10 @@ def open_check_file(file_name): else: config.substitutions.append(("%verbose_print", "")) +# Enable `vulkan` feature if Vulkan was found. +if config.vulkan_found == "TRUE": + config.available_features.add("vulkan") + if not config.gpu_aot_target_opts: config.gpu_aot_target_opts = '"-device *"'