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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8299,7 +8299,7 @@ void swap(local_accessor& other);
a@
[source]
----
local_ptr<DataT> get_pointer() const noexcept
local_ptr<value_type> get_pointer() const noexcept
----
a@ Returns a [code]#multi_ptr# to the start of this accessor's local memory
region which corresponds to the calling work-group. The return value is
Expand Down
5 changes: 2 additions & 3 deletions adoc/headers/accessorLocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
namespace sycl {
template <typename DataT, int Dimensions = 1> class local_accessor {
public:
using value_type = // const DataT for read-only accessors, DataT otherwise
__value_type__;
using value_type = DataT;
using reference = value_type&;
using const_reference = const DataT&;
template <access::decorated IsDecorated>
Expand Down Expand Up @@ -63,7 +62,7 @@ template <typename DataT, int Dimensions = 1> class local_accessor {
reference operator[](size_t index) const;

/* Deprecated in SYCL 2020 */
local_ptr<DataT> get_pointer() const noexcept;
local_ptr<value_type> get_pointer() const noexcept;

template <access::decorated IsDecorated>
accessor_ptr<IsDecorated> get_multi_ptr() const noexcept;
Expand Down
Loading