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 =
7171template <typename T, typename Properties>
7272void prefetch_impl (T *ptr, size_t bytes, Properties properties) {
7373#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)));
7578 const __attribute__ ((opencl_global)) char *ptrAnnotated = nullptr ;
7679 if constexpr (!properties.template has_property <prefetch_hint_key>()) {
7780 ptrAnnotated = __builtin_intel_sycl_ptr_annotation (
You can’t perform that action at this time.
0 commit comments