Skip to content

Commit 814fdd3

Browse files
committed
Apply suggestion from CR, fix indentation
Signed-off-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>
1 parent 0eb0a50 commit 814fdd3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sycl/include/CL/sycl/access/access.hpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ struct PtrValueType<ElementType, access::address_space::global_space> {
127127

128128
template <typename ElementType>
129129
struct PtrValueType<ElementType, access::address_space::constant_space> {
130-
// Current implementation of address spaces handling leads to possibility
131-
// of emitting incorrect (in terms of OpenCL) address space casts from constant
132-
// to generic (and vise-versa). So, global address space is used here instead of
133-
// constant to avoid incorrect address space casts in the produced device code.
134-
// "const" qualifier is not used here because multi_ptr interface contains
135-
// methods which return pure ElementType without qualifiers and adding const
136-
// qualifier here will require adding const casts to multi_ptr methods to remove
137-
// const qualifiers from underlying pointer type.
130+
// Current implementation of address spaces handling leads to possibility
131+
// of emitting incorrect (in terms of OpenCL) address space casts from
132+
// constant to generic (and vise-versa). So, global address space is used here
133+
// instead of constant to avoid incorrect address space casts in the produced
134+
// device code. "const" qualifier is not used here because multi_ptr interface
135+
// contains function members which return pure ElementType without qualifiers
136+
// and adding const qualifier here will require adding const casts to
137+
// multi_ptr methods to remove const qualifiers from underlying pointer type.
138138
using type = SYCL_GLOBAL_AS ElementType;
139139
};
140140

0 commit comments

Comments
 (0)