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

Clarify wording about local_access "value_type" #566

Merged

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Jun 13, 2024

Because there is no access mode for local_accessor, the value_type is always the same as DataT. (The only way to get a read-only local_accessor is to use a DataT that is const.)

Remove a comment in the synopsis that made it appear that value_type might be different from DataT.

Also change the return type of local_accessor::get_pointer from DataT to value_type. Although these types are the same, it seems clearer to be consistent with accessor::get_pointer, where the return type is value_type.

Because there is no access mode for `local_accessor`, the `value_type`
is always the same as `DataT`.  (The only way to get a read-only
`local_accessor` is to use a `DataT` that is `const`.)

Remove a comment in the synopsis that made it appear that `value_type`
might be different from `DataT`.

Also change the return type of `local_accessor::get_pointer` from
`DataT` to `value_type`.  Although these types are the same, it seems
clearer to be consistent with `accessor::get_pointer`, where the return
type is `value_type`.
@tomdeakin tomdeakin merged commit 7c670cc into KhronosGroup:SYCL-2020/master Jun 27, 2024
2 checks passed
@gmlueck gmlueck deleted the gmlueck/local-acc-value-type branch June 27, 2024 17:35
keryell pushed a commit that referenced this pull request Sep 10, 2024
Clarify wording about local_access "value_type"
gmlueck pushed a commit that referenced this pull request Nov 7, 2024
Clarify wording about local_access "value_type"

(cherry picked from commit 7c670cc)
gmlueck pushed a commit that referenced this pull request Nov 7, 2024
Clarify wording about local_access "value_type"

(cherry picked from commit 7c670cc)
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.

4 participants