-
Notifications
You must be signed in to change notification settings - Fork 738
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
[SYCL] Support negative filters for ONEAPI_DEVICE_SELECTOR #7309
Conversation
@RaviNarayanaswamy , |
@lbushi25 , |
@bso-intel Yes, the documentation has been updated! |
Furthermore, if the value of this environment variable only has discarding filters, an accepting filter that matches all devices, but not sub-devices and sub-sub-devices, will be implicitly included in the | ||
environment variable to allow the user to specify only the list of devices that must not be made available. Therefore, `!*:cpu` will accept all devices except those that are of the cpu type and `opencl:*;!*:cpu` | ||
will accept all devices of the opencl backend exept those that are of the opencl backend and of the cpu type. Finally, it is valid to have no accepting filter match a device but have at least one | ||
discarding filter match the device. In this case, the device remains unavailable as expected. | ||
|
||
The following examples further illustrate the usage of this environment variable: | ||
|
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.
Please add the exclamation mark ('!') in this bullet.
- The semi-colon character (
;
) is treated specially by many shells, so you may need to enclose the string in quotes if the selection string contains this character.
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.
Doc changes LGTM.
LGTM |
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.
One question, but otherwise LGTM.
pinging @intel/dpcpp-doc-reviewers @KseniyaTikhomirova for reachability since it has been open for a couple of days now. |
Hi,
The CI failures are unrelated to my changes. The test Regression/device_num.cpp has been fixed by #7336. The test regression/tanh_fix_test.cpp has been fixed by intel/llvm-test-suite#1372.
From: Kseniya Tikhomirova ***@***.***>
Sent: Thursday, November 10, 2022 11:45 AM
To: intel/llvm ***@***.***>
Cc: Bushi, Lorenc ***@***.***>; Mention ***@***.***>
Subject: Re: [intel/llvm] [SYCL] Support negative filters for ONEAPI_DEVICE_SELECTOR (PR #7309)
pinging @intel/dpcpp-doc-reviewers<https://github.com/orgs/intel/teams/dpcpp-doc-reviewers> @KseniyaTikhomirova<https://github.com/KseniyaTikhomirova> for reachability since it has been open for a couple of days now.
hello, it has ci failures, that seems to be related.
—
Reply to this email directly, view it on GitHub<#7309 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A3A4DXUUB7T4GPW7B5U4LS3WHURBDANCNFSM6AAAAAARZXOSEY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
SYCL :: Basic/barrier_order.cpp test on HIP is disabled at intel/llvm-test-suite#1375 |
#7309 post-commit failure fix
This PR aims to add support for negative filters for the ONEAPI_DEVICE_SELECTOR variable to provide the user with a more flexible way of specifying which devices should and should not be available for usage. For example, ONEAPI_DEVICE_SELECTOR='opencl:*;!opencl:gpu' considers all opencl backend devices except for those that are of the gpu type.