|
11 | 11 | #pragma once
|
12 | 12 |
|
13 | 13 | #include <sycl/ext/intel/esimd/common.hpp>
|
| 14 | +#include <sycl/ext/intel/esimd/detail/util.hpp> |
14 | 15 | #include <sycl/ext/intel/esimd/memory.hpp>
|
15 | 16 | #include <sycl/ext/intel/experimental/esimd/detail/memory_intrin.hpp>
|
16 | 17 | #include <sycl/ext/intel/experimental/esimd/detail/util.hpp>
|
@@ -783,7 +784,7 @@ __ESIMD_API
|
783 | 784 | __ESIMD_NS::simd_mask<N> pred = 1) {
|
784 | 785 | #ifdef __ESIMD_FORCE_STATELESS_MEM
|
785 | 786 | return lsc_gather<T, NElts, DS, L1H, L2H>(
|
786 |
| - reinterpret_cast<T *>(acc.get_pointer().get()), offsets, pred); |
| 787 | + __ESIMD_DNS::accessorToPointer<T>(acc), offsets, pred); |
787 | 788 | #else
|
788 | 789 | __ESIMD_NS::simd<T, N * NElts> PassThru; // Intentionally uninitialized.
|
789 | 790 | using PropertyListT = __ESIMD_DNS::make_L1_L2_properties_t<L1H, L2H>;
|
@@ -858,7 +859,8 @@ __ESIMD_API
|
858 | 859 | __ESIMD_NS::simd<T, N * NElts> pass_thru) {
|
859 | 860 | #ifdef __ESIMD_FORCE_STATELESS_MEM
|
860 | 861 | return lsc_gather<T, NElts, DS, L1H, L2H>(
|
861 |
| - reinterpret_cast<T *>(acc.get_pointer().get()), offsets, pred, pass_thru); |
| 862 | + reinterpret_cast<T *>(__ESIMD_DNS::accessorToPointer<T>(acc)), offsets, |
| 863 | + pred, pass_thru); |
862 | 864 |
|
863 | 865 | #else
|
864 | 866 | using PropertyListT = __ESIMD_DNS::make_L1_L2_properties_t<L1H, L2H>;
|
|
0 commit comments