Skip to content
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

Clarify is_available #740

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Pennycook
Copy link
Contributor

The is_available query is based on CL_DEVICE_AVAILABLE from OpenCL. The most recent OpenCL standard includes an extra sentence that wasn't copied over to SYCL 2020, and this PR fixes that.

I also added an extra sentence to clarify that what causes a device to move between available and not available is implementation-defined. This wasn't part of OpenCL, but I can't see a way to avoid specifying it this way in SYCL: the least surprising way to implement this on an OpenCL backend would be to say "It returns the result of CL_DEVICE_AVAILABLE", but that is only possible if it's implementation-defined.

Closes #347.


My personal opinion is that this query isn't very useful, and that we should deprecate it and remove it in SYCL-Next. But that's a separate issue to what the behavior should be in SYCL 2020.

The is_available query is based on CL_DEVICE_AVAILABLE from OpenCL.
The most recent OpenCL standard includes the sentence added by this commit.
@Pennycook Pennycook added the clarification Something is unclear label Feb 24, 2025
@Pennycook Pennycook added this to the SYCL 2020 milestone Feb 24, 2025
@gmlueck
Copy link
Contributor

gmlueck commented Feb 28, 2025

My personal opinion is that this query isn't very useful, and that we should deprecate it and remove it in SYCL-Next. But that's a separate issue to what the behavior should be in SYCL 2020.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Something is unclear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device availability in not specified in details
2 participants