diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index be45ef7c2a3de..65307be2bb641 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -873,7 +873,7 @@ def get_sycl_ls_verbose(sycl_device, env): # matches that architecture using the backend:device-num device selection # scheme. filtered_sycl_devices = [] -for sycl_device in remove_level_zero_suffix(config.sycl_devices): +for sycl_device in config.sycl_devices: backend, device_arch = sycl_device.split(":", 1) if not "arch-" in device_arch: @@ -887,7 +887,9 @@ def get_sycl_ls_verbose(sycl_device, env): detected_architectures = [] - for line in get_sycl_ls_verbose(backend + ":*", env): + platform_devices = remove_level_zero_suffix(backend + ":*") + + for line in get_sycl_ls_verbose(platform_devices, env): if re.match(r" *Architecture:", line): _, architecture = line.strip().split(":", 1) detected_architectures.append(architecture.strip()) @@ -906,7 +908,7 @@ def get_sycl_ls_verbose(sycl_device, env): if not filtered_sycl_devices and not config.test_mode == "build-only": lit_config.error( - "No sycl devices selected! Check your device " "architecture filters." + "No sycl devices selected! Check your device architecture filters." ) config.sycl_devices = filtered_sycl_devices