@@ -103,7 +103,7 @@ template <typename T> struct vec_helper {
103
103
static constexpr RetType get (T value) { return value; }
104
104
};
105
105
106
- #if __cplusplus >= 201703L
106
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
107
107
template <> struct vec_helper <std::byte> {
108
108
using RetType = std::uint8_t ;
109
109
static constexpr RetType get (std::byte value) { return (RetType)value; }
@@ -2206,7 +2206,7 @@ using select_apply_cl_t =
2206
2206
__SYCL_GET_CL_TYPE (int , num), __SYCL_GET_CL_TYPE(long , num)>; \
2207
2207
};
2208
2208
2209
- #if __cplusplus >= 201703L
2209
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
2210
2210
#define __SYCL_DECLARE_BYTE_CONVERTER (num ) \
2211
2211
template <> class BaseCLTypeConverter <std::byte, num> { \
2212
2212
public: \
@@ -2231,7 +2231,7 @@ using select_apply_cl_t =
2231
2231
using DataType = bool ; \
2232
2232
};
2233
2233
2234
- #if __cplusplus >= 201703L
2234
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
2235
2235
#define __SYCL_DECLARE_SCALAR_BYTE_CONVERTER \
2236
2236
template <> class BaseCLTypeConverter <std::byte, 1 > { \
2237
2237
public: \
@@ -2330,7 +2330,7 @@ using select_apply_cl_t =
2330
2330
__SYCL_DECLARE_SCALAR_BOOL_CONVERTER \
2331
2331
} // namespace detail
2332
2332
2333
- #if __cplusplus >= 201703L
2333
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
2334
2334
#define __SYCL_DECLARE_BYTE_VECTOR_CONVERTER \
2335
2335
namespace detail { \
2336
2336
__SYCL_DECLARE_BYTE_CONVERTER (2 ) \
@@ -2344,7 +2344,7 @@ using select_apply_cl_t =
2344
2344
__SYCL_DECLARE_VECTOR_CONVERTERS (char )
2345
2345
__SYCL_DECLARE_SCHAR_VECTOR_CONVERTERS
2346
2346
__SYCL_DECLARE_BOOL_VECTOR_CONVERTERS
2347
- #if __cplusplus >= 201703L
2347
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
2348
2348
__SYCL_DECLARE_BYTE_VECTOR_CONVERTER
2349
2349
#endif
2350
2350
__SYCL_DECLARE_UNSIGNED_INTEGRAL_VECTOR_CONVERTERS (uchar)
@@ -2371,7 +2371,7 @@ __SYCL_DECLARE_FLOAT_VECTOR_CONVERTERS(double)
2371
2371
#undef __SYCL_DECLARE_SCALAR_SCHAR_CONVERTER
2372
2372
#undef __SYCL_DECLARE_BOOL_VECTOR_CONVERTERS
2373
2373
#undef __SYCL_DECLARE_BOOL_CONVERTER
2374
- #if __cplusplus >= 201703L
2374
+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
2375
2375
#undef __SYCL_DECLARE_BYTE_VECTOR_CONVERTER
2376
2376
#undef __SYCL_DECLARE_BYTE_CONVERTER
2377
2377
#undef __SYCL_DECLARE_SCALAR_BYTE_CONVERTER
0 commit comments