File tree Expand file tree Collapse file tree 3 files changed +1
-23
lines changed Expand file tree Collapse file tree 3 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -140,19 +140,11 @@ using cl_double = double;
140140} // namespace opencl
141141
142142// Vector aliases are different between SYCL 1.2.1 and SYCL 2020
143- #if SYCL_LANGUAGE_VERSION >= 202001
144143__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (2 )
145144__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (3 )
146145__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (4 )
147146__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (8 )
148147__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (16 )
149- #else
150- __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (2 )
151- __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(3 )
152- __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(4 )
153- __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(8 )
154- __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(16 )
155- #endif
156148} // namespace _V1
157149} // namespace sycl
158150
Original file line number Diff line number Diff line change 6767// 41(!!!) includes of SYCL headers + 10 includes of standard headers.
6868// 3300+ lines of code
6969
70- // SYCL_LANGUAGE_VERSION is 4 digit year followed by 2 digit revision
71- #if !SYCL_LANGUAGE_VERSION || SYCL_LANGUAGE_VERSION < 202001
72- #define __SYCL_NONCONST_FUNCTOR__
73- #endif
74-
75- // replace _KERNELFUNCPARAM(KernelFunc) with KernelType KernelFunc
76- // or const KernelType &KernelFunc
77- #ifdef __SYCL_NONCONST_FUNCTOR__
78- #define _KERNELFUNCPARAMTYPE KernelType
79- #else
8070#define _KERNELFUNCPARAMTYPE const KernelType &
81- #endif
8271#define _KERNELFUNCPARAM (a ) _KERNELFUNCPARAMTYPE a
8372
8473#if defined(__SYCL_UNNAMED_LAMBDA__)
Original file line number Diff line number Diff line change 5656// these macros are #undef immediately.
5757// replace _KERNELFUNCPARAM(KernelFunc) with KernelType KernelFunc
5858// or const KernelType &KernelFunc
59- #ifdef __SYCL_NONCONST_FUNCTOR__
60- #define _KERNELFUNCPARAM (a ) KernelType a
61- #else
59+
6260#define _KERNELFUNCPARAM (a ) const KernelType &a
63- #endif
6461
6562namespace sycl {
6663inline namespace _V1 {
You can’t perform that action at this time.
0 commit comments