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

Ensure that device{} == device{default_selector{}} #888

Merged
merged 1 commit into from
Dec 9, 2022
Merged

Ensure that device{} == device{default_selector{}} #888

merged 1 commit into from
Dec 9, 2022

Conversation

nilsfriess
Copy link
Collaborator

The SYCL 2020 specification requires that a default constructed device is the same as a device constructed with the default selector. This PR implements this by forward declaring the sycl::device default constructor and defining it in device_selector.hpp where default_selector_v is available. The default constructor then just delegates to the already defined constructor that takes any device selector as its argument.

Copy link
Collaborator

@illuhad illuhad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@illuhad illuhad merged commit 429dc6d into AdaptiveCpp:develop Dec 9, 2022
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.

None yet

2 participants