Skip to content

Commit

Permalink
Merge pull request #566 from gmlueck/gmlueck/local-acc-value-type
Browse files Browse the repository at this point in the history
Clarify wording about local_access "value_type"

(cherry picked from commit 7c670cc)
  • Loading branch information
tomdeakin authored and gmlueck committed Nov 7, 2024
1 parent 599a985 commit 55fc47e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8303,7 +8303,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

0 comments on commit 55fc47e

Please sign in to comment.