@@ -43,7 +43,7 @@ class subscript_obj {
4343 subscript_obj (const accessor_t &acc, cl::sycl::id<accessorDim> &indexes)
4444 : accRef(acc), ids(indexes) {}
4545
46- INLINE_IF_DEVICE subscript_obj<accessorDim, dataT, dimensions - 1 , accessMode, accessTarget,
46+ subscript_obj<accessorDim, dataT, dimensions - 1 , accessMode, accessTarget,
4747 isPlaceholder>
4848 operator [](size_t index) {
4949 ids[accessorDim - dimensions] = index;
@@ -66,7 +66,7 @@ class subscript_obj<accessorDim, dataT, 1, accessMode, accessTarget,
6666 subscript_obj (const accessor_t &acc, cl::sycl::id<accessorDim> &indexes)
6767 : accRef(acc), ids(indexes) {}
6868
69- INLINE_IF_DEVICE dataT &operator [](size_t index) {
69+ dataT &operator [](size_t index) {
7070 ids[accessorDim - 1 ] = index;
7171 return accRef.__impl ()->Data [getOffsetForId (
7272 accRef.__impl ()->Range , ids, accRef.__impl ()->Offset )];
@@ -87,7 +87,7 @@ class subscript_obj<accessorDim, dataT, 1, access::mode::read, accessTarget,
8787 subscript_obj (const accessor_t &acc, cl::sycl::id<accessorDim> &indexes)
8888 : accRef(acc), ids(indexes) {}
8989
90- INLINE_IF_DEVICE typename detail::remove_AS<dataT>::type
90+ typename detail::remove_AS<dataT>::type
9191 operator [](size_t index) {
9292 ids[accessorDim - 1 ] = index;
9393 return accRef.__impl ()->Data [getOffsetForId (
@@ -118,7 +118,7 @@ SYCL_ACCESSOR_IMPL(isTargetHostAccess(accessTarget) && dimensions == 0) {
118118 accessor_impl (dataT *Data) : Data (Data) {}
119119
120120 // Returns the number of accessed elements.
121- INLINE_IF_DEVICE size_t get_count () const { return 1 ; }
121+ size_t get_count () const { return 1 ; }
122122};
123123
124124// / Implementation of host accessor.
@@ -133,7 +133,7 @@ SYCL_ACCESSOR_IMPL(isTargetHostAccess(accessTarget) && dimensions > 0) {
133133 : Data (Data), Range (Range), Offset (Offset) {}
134134
135135 // Returns the number of accessed elements.
136- INLINE_IF_DEVICE size_t get_count () const { return Range.size (); }
136+ size_t get_count () const { return Range.size (); }
137137};
138138
139139// / Implementation of device (kernel) accessor providing access to a single
@@ -163,7 +163,7 @@ SYCL_ACCESSOR_IMPL(!isTargetHostAccess(accessTarget) &&
163163 {}
164164
165165 // Returns the number of accessed elements.
166- INLINE_IF_DEVICE size_t get_count () const { return 1 ; }
166+ size_t get_count () const { return 1 ; }
167167
168168 static_assert (
169169 std::is_same<typename DeviceValueType<dataT, accessTarget>::type,
@@ -201,7 +201,7 @@ SYCL_ACCESSOR_IMPL(!isTargetHostAccess(accessTarget) &&
201201 {}
202202
203203 // Returns the number of accessed elements.
204- INLINE_IF_DEVICE size_t get_count () const { return Range.size (); }
204+ size_t get_count () const { return Range.size (); }
205205
206206 static_assert (
207207 std::is_same<typename DeviceValueType<dataT, accessTarget>::type,
@@ -240,7 +240,7 @@ SYCL_ACCESSOR_IMPL(accessTarget == access::target::local &&
240240 }
241241
242242 // Returns the number of accessed elements.
243- INLINE_IF_DEVICE size_t get_count () const { return 1 ; }
243+ size_t get_count () const { return 1 ; }
244244
245245 static_assert (
246246 std::is_same<typename DeviceValueType<dataT, accessTarget>::type,
@@ -285,7 +285,7 @@ SYCL_ACCESSOR_IMPL(accessTarget == access::target::local &&
285285 }
286286
287287 // Returns the number of accessed elements.
288- INLINE_IF_DEVICE size_t get_count () const { return Range.size (); }
288+ size_t get_count () const { return Range.size (); }
289289
290290 static_assert (
291291 std::is_same<typename DeviceValueType<dataT, accessTarget>::type,
@@ -307,11 +307,11 @@ class accessor_base {
307307 using _ImplT =
308308 accessor_impl<dataT, dimensions, accessMode, accessTarget, isPlaceholder>;
309309
310- INLINE_IF_DEVICE const _ImplT *__impl () const {
310+ const _ImplT *__impl () const {
311311 return reinterpret_cast <const _ImplT *>(this );
312312 }
313313
314- INLINE_IF_DEVICE _ImplT *__impl () { return reinterpret_cast <_ImplT *>(this ); }
314+ _ImplT *__impl () { return reinterpret_cast <_ImplT *>(this ); }
315315
316316 static_assert (
317317 std::is_same<typename DeviceValueType<dataT, accessTarget>::type,
@@ -339,21 +339,21 @@ class accessor_base {
339339
340340SYCL_ACCESSOR_SUBCLASS (accessor_common, accessor_base, true /* always */ ) {
341341 // Returns true if the current accessor is a placeholder accessor.
342- INLINE_IF_DEVICE constexpr bool is_placeholder () const {
342+ constexpr bool is_placeholder () const {
343343 return isPlaceholder == access::placeholder::true_t ;
344344 }
345345
346346 // Returns the size of the accessed memory in bytes.
347- INLINE_IF_DEVICE size_t get_size () const { return this ->get_count () * sizeof (dataT); }
347+ size_t get_size () const { return this ->get_count () * sizeof (dataT); }
348348
349349 // Returns the number of accessed elements.
350- INLINE_IF_DEVICE size_t get_count () const { return this ->__impl ()->get_count (); }
350+ size_t get_count () const { return this ->__impl ()->get_count (); }
351351
352- template <int Dimensions = dimensions> INLINE_IF_DEVICE
352+ template <int Dimensions = dimensions>
353353 typename std::enable_if<(Dimensions > 0 ), range<Dimensions>>::type
354354 get_range () const { return this ->__impl ()->Range ; }
355355
356- template <int Dimensions = dimensions> INLINE_IF_DEVICE
356+ template <int Dimensions = dimensions>
357357 typename std::enable_if<(Dimensions > 0 ), id<Dimensions>>::type
358358 get_offset () const { return this ->__impl ()->Offset ; }
359359};
@@ -364,7 +364,7 @@ SYCL_ACCESSOR_SUBCLASS(accessor_opdata_w, accessor_common,
364364 accessMode == access::mode::discard_write ||
365365 accessMode == access::mode::discard_read_write) &&
366366 dimensions == 0 ) {
367- INLINE_IF_DEVICE operator dataT &() const {
367+ operator dataT &() const {
368368 return this ->__impl ()->Data [0 ];
369369 }
370370};
@@ -382,7 +382,7 @@ SYCL_ACCESSOR_SUBCLASS(accessor_subscript_wn, accessor_opdata_w,
382382
383383 subscript_obj<dimensions, dataT, dimensions - 1 , accessMode, accessTarget,
384384 isPlaceholder>
385- INLINE_IF_DEVICE operator [](size_t index) const {
385+ operator [](size_t index) const {
386386 id<dimensions> ids;
387387 ids[0 ] = index;
388388 return subscript_obj<dimensions, dataT, dimensions - 1 , accessMode,
@@ -402,11 +402,11 @@ SYCL_ACCESSOR_SUBCLASS(accessor_subscript_w, accessor_subscript_wn,
402402 // classes. That's why operator[] defined in accessor_subscript_wn
403403 // is not visible here and we have to define
404404 // operator[](id<dimensions>) once again.
405- INLINE_IF_DEVICE dataT &operator [](id<dimensions> index) const {
405+ dataT &operator [](id<dimensions> index) const {
406406 return this ->operator [](
407407 getOffsetForId (this ->get_range (), index, this ->get_offset ()));
408408 }
409- INLINE_IF_DEVICE dataT &operator [](size_t index) const {
409+ dataT &operator [](size_t index) const {
410410 return this ->__impl ()->Data [index];
411411 }
412412};
@@ -560,7 +560,7 @@ class accessor
560560 // implementation.
561561 _ImplT __impl;
562562
563- INLINE_IF_DEVICE void __init (_ValueType *Ptr, range<dimensions> Range,
563+ void __init (_ValueType *Ptr, range<dimensions> Range,
564564 id<dimensions> Offset) {
565565 __impl.Data = Ptr;
566566 __impl.Range = Range;
0 commit comments