Skip to content

[SYCL] Change signature of host_accessor::get_pointer for SYCL 2020 #8109

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

Conversation

steffenlarsen
Copy link
Contributor

SYCL 2020 specifies that the get_pointer member should now return a raw pointer for based on value_type and should be noexcept. This commit changes the signature of get_pointer for host accessors.

Note that AccessorBaseHost::getPtr cannot be made noexcept currently as it would be an ABI break. This does not limit the functionality of these changes, but should be changed during next ABI break.

SYCL 2020 specifies that the `get_pointer` member should now return a
raw pointer for based on `value_type` and should be `noexcept`. This
commit changes the signature of `get_pointer` for host accessors.

Note that `AccessorBaseHost::getPtr` cannot be made `noexcept` currently
as it would be an ABI break. This does not limit the functionality of
these changes, but should be changed during next ABI break.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner January 26, 2023 13:47
@steffenlarsen steffenlarsen temporarily deployed to aws January 26, 2023 14:12 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws January 26, 2023 14:43 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor Author

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

@AlexeySachkov AlexeySachkov requested a review from a team January 26, 2023 15:20
@steffenlarsen steffenlarsen temporarily deployed to aws January 26, 2023 18:04 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws January 26, 2023 18:56 — with GitHub Actions Inactive
@dm-vodopyanov
Copy link
Contributor

/testwin

@dm-vodopyanov dm-vodopyanov merged commit a7473fd into intel:sycl Jan 27, 2023
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