Skip to content

[SYCL][E2E] Fix level_zero v2 specifier being stripped too early #18420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sycl/test-e2e/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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())
Expand All @@ -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
Expand Down
Loading