-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL][E2E] Fix lit for arch selection and l0v2 adapter #20728
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
Changes from 2 commits
b262dc6
08db888
c5fa726
ed8add4
770fe63
0382494
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -917,12 +917,14 @@ def get_sycl_ls_verbose(sycl_device, env): | |
|
|
||
| env = copy.copy(llvm_config.config.environment) | ||
|
|
||
| backend_for_selector = backend.replace("_v2", "").replace("_v1", "") | ||
|
|
||
| # Find all available devices under the backend | ||
| env["ONEAPI_DEVICE_SELECTOR"] = backend + ":*" | ||
| env["ONEAPI_DEVICE_SELECTOR"] = backend_for_selector + ":*" | ||
|
|
||
| detected_architectures = [] | ||
|
|
||
| platform_devices = remove_level_zero_suffix(backend + ":*") | ||
| platform_devices = backend_for_selector + ":*" | ||
|
|
||
| for line in get_sycl_ls_verbose(platform_devices, env).stdout.splitlines(): | ||
| if re.match(r" *Architecture:", line): | ||
|
|
@@ -1112,6 +1114,7 @@ def get_sycl_ls_verbose(sycl_device, env): | |
| features.update(sg_size_features) | ||
| features.update(architecture_feature) | ||
| features.update(device_family) | ||
| features.update(aspects) | ||
|
||
|
|
||
| be, dev = sycl_device.split(":") | ||
| features.add(dev.replace("fpga", "accelerator")) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example of the intended lit string after the change in the PR description is
but I was expecting something like
Can you clarify on the intended use case? Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal is to force tests to run on specified device, eg. integrated gpu, even when other devices are present. The option was available before (see lit.cpg.py:901). Although it is rarely used, it is still perfect for testing integrated GPUs. Unfortunately, due to a bug, it did not work with the _v1 or _v2 postfixes in the backend name. The PR fixes this bug.