-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Add '--ignore-device-selectors' CLI option to sycl-ls and impr…
…ove warning messages (#12718) This PR adds a '--ignore-device-selectors' CLI option to sycl-ls that prints all platforms available in the user's system, irrespective of the DPCPP filter environment variables like ONEAPI_DEVICE_SELECTOR.
- Loading branch information
1 parent
652d3ea
commit 6e3aa21
Showing
2 changed files
with
121 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
-- Check that sycl-ls exits with 0 exit code. | ||
-- Check sycl-ls exit code and output. | ||
|
||
RUN: sycl-ls --verbose | ||
RUN: sycl-ls --verbose > vanilla_verbose.out | ||
RUN: sycl-ls > vanilla.out | ||
|
||
-- Check the functioning of '--ignore-device-selectors' CLI option. | ||
|
||
RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" sycl-ls --ignore-device-selectors > ods_ignore_device_selector.out | ||
RUN: diff vanilla.out ods_ignore_device_selector.out | ||
|
||
RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" sycl-ls --ignore-device-selectors --verbose > ods_ignore_device_selector_v.out | ||
RUN: diff vanilla_verbose.out ods_ignore_device_selector_v.out | ||
|
||
RUN: env SYCL_DEVICE_ALLOWLIST="BackendName:opencl" sycl-ls --ignore-device-selectors > sda_ignore_device_selector.out | ||
RUN: diff vanilla.out sda_ignore_device_selector.out | ||
|
||
RUN: env SYCL_DEVICE_ALLOWLIST="BackendName:opencl" sycl-ls --ignore-device-selectors --verbose > sda_ignore_device_selector_v.out | ||
RUN: diff vanilla_verbose.out sda_ignore_device_selector_v.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters