File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ std::string getClangFullCPPVersion() {
128
128
llvm::SmallVector<std::pair<llvm::StringRef, llvm::StringRef>, 2 >
129
129
getSYCLVersionMacros (const LangOptions &LangOpts) {
130
130
if (LangOpts.getSYCLVersion () == LangOptions::SYCL_2020)
131
- return {{" SYCL_LANGUAGE_VERSION" , " 202001 " }};
131
+ return {{" SYCL_LANGUAGE_VERSION" , " 202012L " }};
132
132
llvm_unreachable (" SYCL standard should be set" );
133
133
}
134
134
} // end namespace clang
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ int main() {
17
17
sycl::kernel_single_task<class first_kernel >([]() {});
18
18
}
19
19
// CHECK: #ifndef SYCL_LANGUAGE_VERSION
20
- // CHECK-NEXT: #define SYCL_LANGUAGE_VERSION 202001
20
+ // CHECK-NEXT: #define SYCL_LANGUAGE_VERSION 202012
21
21
// CHECK-NEXT: #endif //SYCL_LANGUAGE_VERSION
22
22
23
23
// CHECK-RANGE: #ifndef __SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__
Original file line number Diff line number Diff line change 16
16
// CHECK-NOT:#define SYCL_EXTERNAL
17
17
// CHECK-NOT:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
18
18
19
- // CHECK-SYCL-STD:#define SYCL_LANGUAGE_VERSION 202001
19
+ // CHECK-SYCL-STD:#define SYCL_LANGUAGE_VERSION 202012L
20
20
21
21
// CHECK-SYCL-STD:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
22
22
23
- // CHECK-SYCL-STD-2020:#define SYCL_LANGUAGE_VERSION 202001
23
+ // CHECK-SYCL-STD-2020:#define SYCL_LANGUAGE_VERSION 202012
24
24
// CHECK-SYCL-STD-2020:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
25
25
26
26
// CHECK-SYCL-STD-DEVICE:#define __SYCL_DEVICE_ONLY__ 1
Original file line number Diff line number Diff line change 57
57
#endif // __SYCL_DEPRECATED
58
58
59
59
#ifndef __SYCL2020_DEPRECATED
60
- #if SYCL_LANGUAGE_VERSION >= 202001 && \
60
+ #if SYCL_LANGUAGE_VERSION == 202012L && \
61
61
!defined(SYCL2020_DISABLE_DEPRECATION_WARNINGS)
62
62
#define __SYCL2020_DEPRECATED (message ) __SYCL_DEPRECATED(message)
63
63
#else
Original file line number Diff line number Diff line change @@ -1147,7 +1147,8 @@ class __SYCL_EXPORT handler {
1147
1147
// Range rounding is supported only for newer SYCL standards.
1148
1148
#if !defined(__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__) && \
1149
1149
!defined (DPCPP_HOST_DEVICE_OPENMP) && \
1150
- !defined (DPCPP_HOST_DEVICE_PERF_NATIVE) && SYCL_LANGUAGE_VERSION >= 202001
1150
+ !defined (DPCPP_HOST_DEVICE_PERF_NATIVE) && \
1151
+ SYCL_LANGUAGE_VERSION >= 202012L
1151
1152
auto [RoundedRange, HasRoundedRange] = getRoundedRange (UserRange);
1152
1153
if (HasRoundedRange) {
1153
1154
using NameWT = typename detail::get_kernel_wrapper_name_t <NameT>::name;
@@ -1177,7 +1178,7 @@ class __SYCL_EXPORT handler {
1177
1178
} else
1178
1179
#endif // !__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__ &&
1179
1180
// !DPCPP_HOST_DEVICE_OPENMP && !DPCPP_HOST_DEVICE_PERF_NATIVE &&
1180
- // SYCL_LANGUAGE_VERSION >= 202001
1181
+ // SYCL_LANGUAGE_VERSION >= 202012L
1181
1182
{
1182
1183
(void )UserRange;
1183
1184
(void )Props;
You can’t perform that action at this time.
0 commit comments