Commit e5af883 1 parent c53d481 commit e5af883 Copy full SHA for e5af883
File tree 7 files changed +14
-9
lines changed
unittests/get_native_interop
7 files changed +14
-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 @@ -43,6 +43,7 @@ class kernel_handler {
43
43
}
44
44
45
45
#ifdef __SYCL_DEVICE_ONLY__
46
+ #if __cplusplus >= 201703L
46
47
template <
47
48
auto &S,
48
49
typename T = typename std::remove_reference_t <decltype(S)>::value_type,
@@ -63,6 +64,7 @@ class kernel_handler {
63
64
return __sycl_getComposite2020SpecConstantValue<T>(
64
65
SymbolicID, &S, MSpecializationConstantsBuffer);
65
66
}
67
+ #endif // __cplusplus >= 201703L
66
68
#endif // __SYCL_DEVICE_ONLY__
67
69
68
70
char *MSpecializationConstantsBuffer = nullptr ;
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 7
7
//
8
8
// ===---------------------------------------------------------------------===//
9
9
10
+ #if __cplusplus >= 201703L
11
+
10
12
#ifndef _SYCL_SPAN
11
13
#define _SYCL_SPAN
12
14
@@ -623,3 +625,5 @@ span(const _Container &)->span<const typename _Container::value_type>;
623
625
} // __SYCL_INLINE_NAMESPACE(cl)
624
626
625
627
#endif // _SYCL_SPAN
628
+
629
+ #endif // __cplusplus >= 201703L
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s -c -o %t.out
2
+ // RUN: %clangxx -fsycl -std=c++14 -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s -c -o %t.out
2
3
// RUN: %clangxx -fsycl -std=c++17 -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s -c -o %t.out
3
4
// RUN: %clangxx -fsycl -std=c++20 -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s -c -o %t.out
4
5
// expected-no-diagnostics
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