@@ -54,9 +54,7 @@ enum class address_space : int {
5454 " space is deprecated since SYCL 2020" ) =
5555 2,
5656 local_space = 3,
57- ext_intel_global_device_space = 4,
58- ext_intel_global_host_space = 5,
59- generic_space = 6, // TODO generic_space address space is not supported yet
57+ generic_space = 4, // TODO generic_space address space is not supported yet
6058};
6159
6260enum class decorated : int { no = 0 , yes = 1 , legacy = 2 };
@@ -112,20 +110,11 @@ template <> struct NegateDecorated<access::decorated::no> {
112110
113111#ifdef __SYCL_DEVICE_ONLY__
114112#define __OPENCL_GLOBAL_AS__ __attribute__ ((opencl_global))
115- #ifdef __ENABLE_USM_ADDR_SPACE__
116- #define __OPENCL_GLOBAL_DEVICE_AS__ __attribute__ ((opencl_global_device))
117- #define __OPENCL_GLOBAL_HOST_AS__ __attribute__ ((opencl_global_host))
118- #else
119- #define __OPENCL_GLOBAL_DEVICE_AS__ __attribute__ ((opencl_global))
120- #define __OPENCL_GLOBAL_HOST_AS__ __attribute__ ((opencl_global))
121- #endif // __ENABLE_USM_ADDR_SPACE__
122113#define __OPENCL_LOCAL_AS__ __attribute__ ((opencl_local))
123114#define __OPENCL_CONSTANT_AS__ __attribute__ ((opencl_constant))
124115#define __OPENCL_PRIVATE_AS__ __attribute__ ((opencl_private))
125116#else
126117#define __OPENCL_GLOBAL_AS__
127- #define __OPENCL_GLOBAL_DEVICE_AS__
128- #define __OPENCL_GLOBAL_HOST_AS__
129118#define __OPENCL_LOCAL_AS__
130119#define __OPENCL_CONSTANT_AS__
131120#define __OPENCL_PRIVATE_AS__
@@ -136,13 +125,6 @@ template <access::target accessTarget> struct TargetToAS {
136125 access::address_space::global_space;
137126};
138127
139- #ifdef __ENABLE_USM_ADDR_SPACE__
140- template <> struct TargetToAS <access::target::device> {
141- constexpr static access::address_space AS =
142- access::address_space::ext_intel_global_device_space;
143- };
144- #endif // __ENABLE_USM_ADDR_SPACE__
145-
146128template <> struct TargetToAS <access::target::local> {
147129 constexpr static access::address_space AS =
148130 access::address_space::local_space;
@@ -171,18 +153,6 @@ struct DecoratedType<ElementType, access::address_space::global_space> {
171153 using type = __OPENCL_GLOBAL_AS__ ElementType;
172154};
173155
174- template <typename ElementType>
175- struct DecoratedType <ElementType,
176- access::address_space::ext_intel_global_device_space> {
177- using type = __OPENCL_GLOBAL_DEVICE_AS__ ElementType;
178- };
179-
180- template <typename ElementType>
181- struct DecoratedType <ElementType,
182- access::address_space::ext_intel_global_host_space> {
183- using type = __OPENCL_GLOBAL_HOST_AS__ ElementType;
184- };
185-
186156template <typename ElementType>
187157struct DecoratedType <ElementType, access::address_space::constant_space> {
188158 // Current implementation of address spaces handling leads to possibility
@@ -211,18 +181,6 @@ template <class T> struct deduce_AS_impl {
211181 access::address_space::generic_space;
212182};
213183
214- #ifdef __ENABLE_USM_ADDR_SPACE__
215- template <class T > struct deduce_AS_impl <__OPENCL_GLOBAL_DEVICE_AS__ T> {
216- static constexpr access::address_space value =
217- access::address_space::ext_intel_global_device_space;
218- };
219-
220- template <class T > struct deduce_AS_impl <__OPENCL_GLOBAL_HOST_AS__ T> {
221- static constexpr access::address_space value =
222- access::address_space::ext_intel_global_host_space;
223- };
224- #endif // __ENABLE_USM_ADDR_SPACE__
225-
226184template <class T > struct deduce_AS_impl <__OPENCL_GLOBAL_AS__ T> {
227185 static constexpr access::address_space value =
228186 access::address_space::global_space;
@@ -259,19 +217,6 @@ template <typename T> struct remove_decoration_impl<__OPENCL_GLOBAL_AS__ T> {
259217 using type = T;
260218};
261219
262- #ifdef __ENABLE_USM_ADDR_SPACE__
263- template <typename T>
264- struct remove_decoration_impl <__OPENCL_GLOBAL_DEVICE_AS__ T> {
265- using type = T;
266- };
267-
268- template <typename T>
269- struct remove_decoration_impl <__OPENCL_GLOBAL_HOST_AS__ T> {
270- using type = T;
271- };
272-
273- #endif // __ENABLE_USM_ADDR_SPACE__
274-
275220template <typename T> struct remove_decoration_impl <__OPENCL_PRIVATE_AS__ T> {
276221 using type = T;
277222};
@@ -319,8 +264,6 @@ template <typename T>
319264using remove_decoration_t = typename remove_decoration<T>::type;
320265
321266#undef __OPENCL_GLOBAL_AS__
322- #undef __OPENCL_GLOBAL_DEVICE_AS__
323- #undef __OPENCL_GLOBAL_HOST_AS__
324267#undef __OPENCL_LOCAL_AS__
325268#undef __OPENCL_CONSTANT_AS__
326269#undef __OPENCL_PRIVATE_AS__
0 commit comments