@@ -347,7 +347,6 @@ ESIMD_INLINE
347
347
constexpr int16_t scale = 0 ;
348
348
const auto si = __ESIMD_GET_SURF_HANDLE (acc);
349
349
350
- #ifdef __SYCL_DEVICE_ONLY__
351
350
if constexpr (sizeof (T) < 4 ) {
352
351
using Tint = std::conditional_t <std::is_integral_v<T>, T,
353
352
detail::uint_type_t <sizeof (T)>>;
@@ -359,9 +358,7 @@ ESIMD_INLINE
359
358
const simd<PromoT, N> promo_vals = convert<PromoT>(std::move (vals_int));
360
359
__esimd_scatter_scaled<PromoT, N, decltype (si), TypeSizeLog2, scale>(
361
360
mask.data (), si, glob_offset, offsets.data (), promo_vals.data ());
362
- } else
363
- #endif // __SYCL_DEVICE_ONLY__
364
- {
361
+ } else {
365
362
__esimd_scatter_scaled<T, N, decltype (si), TypeSizeLog2, scale>(
366
363
mask.data (), si, glob_offset, offsets.data (), vals.data ());
367
364
}
@@ -380,7 +377,6 @@ gather_impl(AccessorTy acc, simd<uint32_t, N> offsets, uint32_t glob_offset,
380
377
constexpr uint32_t scale = 0 ;
381
378
const auto si = get_surface_index (acc);
382
379
383
- #ifdef __SYCL_DEVICE_ONLY__
384
380
if constexpr (sizeof (T) < 4 ) {
385
381
using Tint = std::conditional_t <std::is_integral_v<T>, T,
386
382
detail::uint_type_t <sizeof (T)>>;
@@ -401,9 +397,7 @@ gather_impl(AccessorTy acc, simd<uint32_t, N> offsets, uint32_t glob_offset,
401
397
} else {
402
398
return Res;
403
399
}
404
- } else
405
- #endif // __SYCL_DEVICE_ONLY__
406
- {
400
+ } else {
407
401
return __esimd_gather_masked_scaled2<T, N, decltype (si), TypeSizeLog2,
408
402
scale>(si, glob_offset, offsets.data (),
409
403
mask.data ());
0 commit comments