Skip to content

[SYCL] Make default device the one selected by default_selector #5587

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

Closed
wants to merge 3 commits into from

Conversation

s-kanaev
Copy link
Contributor

Host device still can be retrieved with help of special tag host_device:

sycl::device D(sycl::host_device{});

Signed-off-by: Sergey Kanaev <[email protected]>
@s-kanaev
Copy link
Contributor Author

/verify with intel/llvm-test-suite#845

Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

Please, make similar update to the platform class as well.

Comment on lines 40 to +41
/// Constructs a SYCL device instance as a host device.
device(host_device);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see this constructor in the specification. Why do you think we should add it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think there's an approval to remove host device completely. Also, libsycl.so makes use of host device.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not suggesting we move the host device support completely, but we should not add silently add non-standard functionality w/o extending the specification.

You can use aspect_selector with host aspect to select a host device. The host aspect is not in the standard, but it's already supported by DPC++, so no new extensions are needed.

@s-kanaev s-kanaev marked this pull request as draft February 16, 2022 14:29
@s-kanaev
Copy link
Contributor Author

/verify with intel/llvm-test-suite#845

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

Successfully merging this pull request may close these issues.

2 participants