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

[SYCL] Implement accessor default constructor #6940

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

dm-vodopyanov
Copy link
Contributor

This patch implements SYCL 2020 accessor default constructor

This patch implements SYCL 2020 accessor default constructor
@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner October 3, 2022 16:05
sycl/source/detail/scheduler/commands.cpp Outdated Show resolved Hide resolved
sycl/test/basic_tests/accessor/accessor_default_ctor.cpp Outdated Show resolved Hide resolved
Comment on lines +10 to +11
sycl::accessor<int, 0, sycl::access::mode::read_write, sycl::target::device>
B;
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 sure what the intended use-case for the default-constructed accessor is. Would having a CTAD rule for this be of any use?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree. For now it is the implementation according to spec. Regarding CTAD - will create a ticket for spec writers with clarification should it be included to spec or not. For now it should not block merging of this PR.

@dm-vodopyanov dm-vodopyanov merged commit 04928f9 into intel:sycl Oct 6, 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.

2 participants