File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
unittests/get_native_interop Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 40
40
41
41
#ifndef __SYCL_DEPRECATED
42
42
#ifndef SYCL_DISABLE_DEPRECATION_WARNINGS
43
- #ifdef _WIN32
44
- #define __SYCL_DEPRECATED (message ) __declspec(deprecated(message))
45
- #else
46
- #define __SYCL_DEPRECATED (message ) __attribute__((deprecated(message)))
47
- #endif
43
+ #define __SYCL_DEPRECATED (message ) [[deprecated(message)]]
48
44
#else // SYCL_DISABLE_DEPRECATION_WARNINGS
49
45
#define __SYCL_DEPRECATED (message )
50
46
#endif // SYCL_DISABLE_DEPRECATION_WARNINGS
Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ class __SYCL_EXPORT kernel {
153
153
// / \return depends on information being queried.
154
154
template <info::kernel_sub_group param>
155
155
// clang-format off
156
- typename info::param_traits<info::kernel_sub_group, param>::return_type
157
156
__SYCL_DEPRECATED (" Use get_info with info::kernel_device_specific instead." )
157
+ typename info::param_traits<info::kernel_sub_group, param>::return_type
158
158
get_sub_group_info (const device &Device) const ;
159
159
// clang-format on
160
160
@@ -166,8 +166,8 @@ class __SYCL_EXPORT kernel {
166
166
// / \return depends on information being queried.
167
167
template <info::kernel_sub_group param>
168
168
// clang-format off
169
- typename info::param_traits<info::kernel_sub_group, param>::return_type
170
169
__SYCL_DEPRECATED (" Use get_info with info::kernel_device_specific instead." )
170
+ typename info::param_traits<info::kernel_sub_group, param>::return_type
171
171
get_sub_group_info (const device &Device,
172
172
typename info::param_traits<info::kernel_sub_group,
173
173
param>::input_type Value) const ;
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ class __SYCL2020_DEPRECATED("spelling is now: no_init") noinit
28
28
29
29
__SYCL_INLINE_CONSTEXPR property::no_init no_init;
30
30
31
- __SYCL_INLINE_CONSTEXPR property::noinit
32
- __SYCL2020_DEPRECATED ( " spelling is now: no_init " ) noinit;
31
+ __SYCL2020_DEPRECATED ( " spelling is now: no_init " )
32
+ __SYCL_INLINE_CONSTEXPR property::noinit noinit;
33
33
34
34
#else
35
35
Original file line number Diff line number Diff line change 8
8
//
9
9
// ===----------------------------------------------------------------------===//
10
10
11
+ #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
12
+
11
13
#include < CL/sycl.hpp>
12
14
#include < CL/sycl/backend/opencl.hpp>
13
15
#include < detail/context_impl.hpp>
You can’t perform that action at this time.
0 commit comments