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

Fix contradiction with context constructors #628

Open
wants to merge 1 commit into
base: gmlueck/reformat-context
Choose a base branch
from

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Sep 20, 2024

The context constructor overloads in the context synopsis did not match the description in the text of the specification. We decided that the overloads in the synopsis were what we intended, so change the text to match.

We also discovered that two constructor overloads taking a platform argument were present in SYCL 1.2.1 and were inadvertently dropped from the SYCL 2020 specification. Add them back.

Clarify the behavior of the constructors when the set of devices is empty. We decided that this should throw an exception, which is consistent with OpenCL's clCreateContext.

Closes #470
Closes #474

The context constructor overloads in the `context` synopsis did not
match the description in the text of the specification.  We decided that
the overloads in the synopsis were what we intended, so change the text
to match.

We also discovered that two constructor overloads taking a `platform`
argument were present in SYCL 1.2.1 and were inadvertently dropped from
the SYCL 2020 specification.  Add them back.

Clarify the behavior of the constructors when the set of devices is
empty.  We decided that this should throw an exception, which is
consistent with OpenCL's `clCreateContext`.

Closes KhronosGroup#470
Closes KhronosGroup#474
@gmlueck
Copy link
Contributor Author

gmlueck commented Sep 20, 2024

The PR is stacked on top of #587. I'll retarget it once #587 is merged.

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