Skip to content

Commit b18e39d

Browse files
authored
[SYCL][E2E] Fix level_zero v2 specifier being stripped too early (#18420)
Fixes #18416
1 parent b863a4b commit b18e39d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sycl/test-e2e/lit.cfg.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def get_sycl_ls_verbose(sycl_device, env):
873873
# matches that architecture using the backend:device-num device selection
874874
# scheme.
875875
filtered_sycl_devices = []
876-
for sycl_device in remove_level_zero_suffix(config.sycl_devices):
876+
for sycl_device in config.sycl_devices:
877877
backend, device_arch = sycl_device.split(":", 1)
878878

879879
if not "arch-" in device_arch:
@@ -887,7 +887,9 @@ def get_sycl_ls_verbose(sycl_device, env):
887887

888888
detected_architectures = []
889889

890-
for line in get_sycl_ls_verbose(backend + ":*", env):
890+
platform_devices = remove_level_zero_suffix(backend + ":*")
891+
892+
for line in get_sycl_ls_verbose(platform_devices, env):
891893
if re.match(r" *Architecture:", line):
892894
_, architecture = line.strip().split(":", 1)
893895
detected_architectures.append(architecture.strip())
@@ -906,7 +908,7 @@ def get_sycl_ls_verbose(sycl_device, env):
906908

907909
if not filtered_sycl_devices and not config.test_mode == "build-only":
908910
lit_config.error(
909-
"No sycl devices selected! Check your device " "architecture filters."
911+
"No sycl devices selected! Check your device architecture filters."
910912
)
911913

912914
config.sycl_devices = filtered_sycl_devices

0 commit comments

Comments
 (0)