-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add minor fixes to accessor/multi_ptr wording #437
Conversation
* 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>
There was a problem hiding this 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 thedecorated::legacy
specialization toElementType
asvalue_type
is not defined.
Because this PR adds the definition of value_type
.
LGTM |
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.
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 whenAccessTarget
istarget::device
as it can't be used in a host task.It adds the
value_type
alias to thedecorated::legacy
specialization ofmulti_ptr
and adds theget_raw
andget_decorated
member functions to thevoid
/decorated::legacy
specializations ofmulti_ptr
.It also changes the alias used in
multi_ptr::get_raw
in thedecorated::legacy
specialization toElementType
asvalue_type
is not defined.cc @gmlueck @steffenlarsen