@@ -200,12 +200,12 @@ ESIMD_INLINE ESIMD_NODEBUG simd<T, n> block_load(AccessorTy acc,
200
200
static_assert (Sz <= 8 * __esimd::OWORD,
201
201
" block size must be at most 8 owords" );
202
202
203
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
203
+ #if defined(__SYCL_DEVICE_ONLY__)
204
204
auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
205
205
return __esimd_block_read<T, n>(surf_ind, offset);
206
206
#else
207
207
return __esimd_block_read<T, n>(acc, offset);
208
- #endif // __SYCL_DEVICE_ONLY__ && __SYCL_EXPLICIT_SIMD__
208
+ #endif // __SYCL_DEVICE_ONLY__
209
209
}
210
210
211
211
// / Flat-address block-store.
@@ -240,12 +240,12 @@ ESIMD_INLINE ESIMD_NODEBUG void block_store(AccessorTy acc, uint32_t offset,
240
240
static_assert (Sz <= 8 * __esimd::OWORD,
241
241
" block size must be at most 8 owords" );
242
242
243
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
243
+ #if defined(__SYCL_DEVICE_ONLY__)
244
244
auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
245
245
__esimd_block_write<T, n>(surf_ind, offset >> 4 , vals.data ());
246
246
#else
247
247
__esimd_block_write<T, n>(acc, offset >> 4 , vals.data ());
248
- #endif // __SYCL_DEVICE_ONLY__ && __SYCL_EXPLICIT_SIMD__
248
+ #endif // __SYCL_DEVICE_ONLY__
249
249
}
250
250
251
251
// / Accessor-based gather.
@@ -290,7 +290,7 @@ ESIMD_INLINE ESIMD_NODEBUG
290
290
using PromoT =
291
291
typename sycl::detail::conditional_t <std::is_signed<T>::value, int32_t ,
292
292
uint32_t >;
293
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
293
+ #if defined(__SYCL_DEVICE_ONLY__)
294
294
const auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
295
295
const simd<PromoT, N> promo_vals =
296
296
__esimd_surf_read<PromoT, N, decltype (surf_ind), TypeSizeLog2, L1H,
@@ -302,7 +302,7 @@ ESIMD_INLINE ESIMD_NODEBUG
302
302
#endif
303
303
return sycl::INTEL::gpu::convert<T>(promo_vals);
304
304
} else {
305
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
305
+ #if defined(__SYCL_DEVICE_ONLY__)
306
306
const auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
307
307
return __esimd_surf_read<T, N, decltype (surf_ind), TypeSizeLog2, L1H, L3H>(
308
308
scale, surf_ind, glob_offset, offsets);
@@ -359,7 +359,7 @@ ESIMD_INLINE ESIMD_NODEBUG
359
359
typename sycl::detail::conditional_t <std::is_signed<T>::value, int32_t ,
360
360
uint32_t >;
361
361
const simd<PromoT, N> promo_vals = sycl::INTEL::gpu::convert<PromoT>(vals);
362
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
362
+ #if defined(__SYCL_DEVICE_ONLY__)
363
363
const auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
364
364
__esimd_surf_write<PromoT, N, decltype (surf_ind), TypeSizeLog2, L1H, L3H>(
365
365
pred, scale, surf_ind, glob_offset, offsets, promo_vals);
@@ -368,7 +368,7 @@ ESIMD_INLINE ESIMD_NODEBUG
368
368
pred, scale, acc, glob_offset, offsets, promo_vals);
369
369
#endif
370
370
} else {
371
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
371
+ #if defined(__SYCL_DEVICE_ONLY__)
372
372
const auto surf_ind = AccessorPrivateProxy::getNativeImageObj (acc);
373
373
__esimd_surf_write<T, N, decltype (surf_ind), TypeSizeLog2, L1H, L3H>(
374
374
pred, scale, surf_ind, glob_offset, offsets, vals);
@@ -734,7 +734,7 @@ media_block_load(AccessorTy acc, unsigned x, unsigned y) {
734
734
static_assert (Width <= 64u , " valid block width is in range [1, 64]" );
735
735
static_assert (m <= 64u , " valid block height is in range [1, 64]" );
736
736
static_assert (plane <= 3u , " valid plane index is in range [0, 3]" );
737
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
737
+ #if defined(__SYCL_DEVICE_ONLY__)
738
738
constexpr unsigned int RoundedWidth =
739
739
Width < 4 ? 4 : __esimd::getNextPowerOf2<Width>();
740
740
@@ -751,7 +751,7 @@ media_block_load(AccessorTy acc, unsigned x, unsigned y) {
751
751
}
752
752
#else
753
753
return __esimd_media_block_load<T, m, n>(0 , acc, plane, sizeof (T) * n, x, y);
754
- #endif // __SYCL_DEVICE_ONLY__ && __SYCL_EXPLICIT_SIMD__
754
+ #endif // __SYCL_DEVICE_ONLY__
755
755
}
756
756
757
757
// / Media block store.
@@ -776,7 +776,7 @@ media_block_store(AccessorTy acc, unsigned x, unsigned y, simd<T, m * n> vals) {
776
776
static_assert (Width <= 64u , " valid block width is in range [1, 64]" );
777
777
static_assert (m <= 64u , " valid block height is in range [1, 64]" );
778
778
static_assert (plane <= 3u , " valid plane index is in range [0, 3]" );
779
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
779
+ #if defined(__SYCL_DEVICE_ONLY__)
780
780
constexpr unsigned int RoundedWidth =
781
781
Width < 4 ? 4 : __esimd::getNextPowerOf2<Width>();
782
782
constexpr unsigned int n1 = RoundedWidth / sizeof (T);
@@ -796,7 +796,7 @@ media_block_store(AccessorTy acc, unsigned x, unsigned y, simd<T, m * n> vals) {
796
796
}
797
797
#else
798
798
__esimd_media_block_store<T, m, n>(0 , acc, plane, sizeof (T) * n, x, y, vals);
799
- #endif // __SYCL_DEVICE_ONLY__ && __SYCL_EXPLICIT_SIMD__
799
+ #endif // __SYCL_DEVICE_ONLY__
800
800
}
801
801
802
802
#ifndef __SYCL_DEVICE_ONLY__
@@ -813,11 +813,11 @@ SYCL_EXTERNAL void slm_init(uint32_t size) {}
813
813
// / \ingroup sycl_esimd
814
814
template <typename AccessorTy>
815
815
ESIMD_INLINE ESIMD_NODEBUG uint32_t esimd_get_value (AccessorTy acc) {
816
- #if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_EXPLICIT_SIMD__)
816
+ #if defined(__SYCL_DEVICE_ONLY__)
817
817
return __esimd_get_value (AccessorPrivateProxy::getNativeImageObj (acc));
818
818
#else
819
819
return __esimd_get_value (acc);
820
- #endif // __SYCL_DEVICE_ONLY__ && __SYCL_EXPLICIT_SIMD__
820
+ #endif // __SYCL_DEVICE_ONLY__
821
821
}
822
822
823
823
// / \defgroup sycl_esimd_raw_send_api Raw send APIs
0 commit comments