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 1 commit into
base: gmlueck/reformat-device
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.

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.

1 participant