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 and deprecate "execution_capabilities" #625

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

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Sep 19, 2024

We had a customer bug report about the behavior of info::device::execution_capabilities for non-OpenCL devices. It turns out that the spec isn't clear about this. This PR clarifies that an exception should be thrown, which is consistent with our behavior for info::device::profile and info::device::preferred_interop_user_sync, which are also inherited from OpenCL. Another option would be to return an empty vector, so we could debate that if people think that's better.

I also think we should deprecate this query, which is consistent with the other queries that are specific to the OpenCL backend. This PR deprecates the query in SYCL-NEXT, though I would also be open to retroactively deprecating it in SYCL 2020 with the rationale that we deprecated the other OpenCL-specific queries and simply forgot this one.

We had a customer bug report about the behavior of
`info::device::execution_capabilities` for non-OpenCL devices.  It turns
out that the spec isn't clear about this.  This PR clarifies that an
exception should be thrown, which is consistent with our behavior for
`info::device::profile` and `info::device::preferred_interop_user_sync`,
which are also inherited from OpenCL.  Another option would be to return
an empty vector, so we could debate that if people think that's better.

I also think we should deprecate this query, which is consistent with
the other queries that are specific to the OpenCL backend.  This PR
deprecates the query in SYCL-NEXT, though I would also be open to
retroactively deprecating it in SYCL 2020 with the rationale that we
deprecated the other OpenCL-specific queries and simply forgot this one.
@gmlueck
Copy link
Contributor Author

gmlueck commented Sep 19, 2024

NOTE This PR is "stacked" on top of #601. Once #601 is merged, I'll retarget this PR to the "main" branch.

EDIT #601 is merged now, and I've retargeted this PR to the "main" branch.

@gmlueck gmlueck changed the base branch from gmlueck/reformat-device to main October 3, 2024 18:33
@gmlueck gmlueck added the Agenda To be discussed during a SYCL committee meeting label Oct 28, 2024
The WG decided to deprecate this in SYCL 2020 instead.
@tomdeakin tomdeakin removed the Agenda To be discussed during a SYCL committee meeting label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants