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

Add minor fixes to accessor/multi_ptr wording #437

Merged

Conversation

AerialMantis
Copy link
Collaborator

@AerialMantis AerialMantis commented Jul 4, 2023

Some minor issues were raised in #432 after the PR was merged, so this is a follow-up PR to address those.

This PR adds a restriction for accessor::get_multi_ptr that it's only available when AccessTarget is target::device as it can't be used in a host task.

It adds the value_type alias to the decorated::legacy specialization of multi_ptr and adds the get_raw and get_decorated member functions to the void/decorated::legacy specializations of multi_ptr.

It also changes the alias used in multi_ptr::get_raw in the decorated::legacy specialization to ElementType as value_type is not defined.

cc @gmlueck @steffenlarsen

* Add restriction for accessor::get_multi_ptr that it's only available
when AccessTarget is target::device as it can't be used in a host task.
* Change alias used in multi_ptr legacy specialization as value_type is
not defined.
* Introduce value_type instead of using ElementType.
* Add get_raw/get_decorated to void/legacy specialization.
Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
Copy link
Contributor

@gmlueck gmlueck left a comment

Choose a reason for hiding this comment

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

A couple of comments below. In addition, this statement in the PR description seems confusing:

It also changes the alias used in multi_ptr::get_raw in the decorated::legacy specialization to ElementType as value_type is not defined.

Because this PR adds the definition of value_type.

adoc/headers/multipointerlegacy.h Outdated Show resolved Hide resolved
adoc/headers/multipointerlegacy.h Outdated Show resolved Hide resolved
adoc/headers/multipointerlegacy.h Outdated Show resolved Hide resolved
adoc/headers/multipointerlegacy.h Outdated Show resolved Hide resolved
@AerialMantis AerialMantis requested a review from keryell July 6, 2023 15:16
@fraggamuffin
Copy link

LGTM

@keryell keryell merged commit f34b802 into KhronosGroup:SYCL-2020/master Jul 20, 2023
keryell added a commit that referenced this pull request Sep 10, 2024
Add minor fixes to accessor/multi_ptr wording.

Some minor issues were raised in #432 after the PR was merged, so this is a follow-up PR to address those.

This PR adds a restriction for accessor::get_multi_ptr that it's only available when AccessTarget is target::device as it can't be used in a host task.

It adds the value_type alias to the decorated::legacy specialization of multi_ptr and adds the get_raw and get_decorated member functions to the void/decorated::legacy specializations of multi_ptr.

It also changes the alias used in multi_ptr::get_raw in the decorated::legacy specialization to ElementType as value_type is not defined.
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.

5 participants