File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
sycl/include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,10 @@ inline constexpr bool check_prefetch_acc_mode =
71
71
template <typename T, typename Properties>
72
72
void prefetch_impl (T *ptr, size_t bytes, Properties properties) {
73
73
#ifdef __SYCL_DEVICE_ONLY__
74
- auto *ptrGlobalAS = __SYCL_GenericCastToPtrExplicit_ToGlobal<const char >(ptr);
74
+ auto *ptrGlobalAS =
75
+ reinterpret_cast <__attribute__ ((opencl_global)) const char *>(
76
+ detail::static_address_cast<access::address_space::global_space>(
77
+ const_cast <const T *>(ptr)));
75
78
const __attribute__ ((opencl_global)) char *ptrAnnotated = nullptr ;
76
79
if constexpr (!properties.template has_property <prefetch_hint_key>()) {
77
80
ptrAnnotated = __builtin_intel_sycl_ptr_annotation (
You can’t perform that action at this time.
0 commit comments