@@ -228,17 +228,17 @@ template <typename T>
228
228
using is_geninteger64bit = is_gen_based_on_type_sizeof<T, 8 , is_geninteger>;
229
229
230
230
template <typename T>
231
- using is_genintptr = bool_constant<
231
+ using is_genintptr = std:: bool_constant<
232
232
is_pointer<T>::value && is_genint<remove_pointer_t <T>>::value &&
233
233
is_address_space_compliant<T, gvl::nonconst_address_space_list>::value>;
234
234
235
235
template <typename T>
236
- using is_genfloatptr = bool_constant<
236
+ using is_genfloatptr = std:: bool_constant<
237
237
is_pointer<T>::value && is_genfloat<remove_pointer_t <T>>::value &&
238
238
is_address_space_compliant<T, gvl::nonconst_address_space_list>::value>;
239
239
240
240
template <typename T>
241
- using is_genptr = bool_constant<
241
+ using is_genptr = std:: bool_constant<
242
242
is_pointer<T>::value && is_gentype<remove_pointer_t <T>>::value &&
243
243
is_address_space_compliant<T, gvl::nonconst_address_space_list>::value>;
244
244
@@ -424,10 +424,10 @@ using mptr_or_vec_elem_type_t = typename mptr_or_vec_elem_type<T>::type;
424
424
// select_apply_cl_scalar_t selects from T8/T16/T32/T64 basing on
425
425
// sizeof(IN). expected to handle scalar types.
426
426
template <typename T, typename T8, typename T16, typename T32, typename T64>
427
- using select_apply_cl_scalar_t =
428
- conditional_t < sizeof (T) == 1 , T8,
429
- conditional_t <sizeof (T) == 2 , T16,
430
- conditional_t <sizeof (T) == 4 , T32, T64>>>;
427
+ using select_apply_cl_scalar_t = std:: conditional_t <
428
+ sizeof (T) == 1 , T8,
429
+ std:: conditional_t <sizeof (T) == 2 , T16,
430
+ std:: conditional_t <sizeof (T) == 4 , T32, T64>>>;
431
431
432
432
// Shortcuts for selecting scalar int/unsigned int/fp type.
433
433
template <typename T>
@@ -447,21 +447,21 @@ using select_cl_scalar_float_t =
447
447
448
448
template <typename T>
449
449
using select_cl_scalar_integral_t =
450
- conditional_t <std::is_signed<T>::value,
451
- select_cl_scalar_integral_signed_t <T>,
452
- select_cl_scalar_integral_unsigned_t <T>>;
450
+ std:: conditional_t <std::is_signed<T>::value,
451
+ select_cl_scalar_integral_signed_t <T>,
452
+ select_cl_scalar_integral_unsigned_t <T>>;
453
453
454
454
// select_cl_scalar_t picks corresponding cl_* type for input
455
455
// scalar T or returns T if T is not scalar.
456
456
template <typename T>
457
- using select_cl_scalar_t = conditional_t <
457
+ using select_cl_scalar_t = std:: conditional_t <
458
458
std::is_integral<T>::value, select_cl_scalar_integral_t <T>,
459
- conditional_t <
459
+ std:: conditional_t <
460
460
std::is_floating_point<T>::value, select_cl_scalar_float_t <T>,
461
461
// half is a special case: it is implemented differently on host and
462
462
// device and therefore, might lower to different types
463
- conditional_t <std::is_same<T, half>::value,
464
- sycl::detail::half_impl::BIsRepresentationT, T>>>;
463
+ std:: conditional_t <std::is_same<T, half>::value,
464
+ sycl::detail::half_impl::BIsRepresentationT, T>>>;
465
465
466
466
// select_cl_vector_or_scalar_or_ptr does cl_* type selection for element type
467
467
// of a vector type T, pointer type substitution, and scalar type substitution.
@@ -476,9 +476,10 @@ struct select_cl_vector_or_scalar_or_ptr<
476
476
// select_cl_scalar_t returns _Float16, so, we try to instantiate vec
477
477
// class with _Float16 DataType, which is not expected there
478
478
// So, leave vector<half, N> as-is
479
- vec<conditional_t <std::is_same<mptr_or_vec_elem_type_t <T>, half>::value,
480
- mptr_or_vec_elem_type_t <T>,
481
- select_cl_scalar_t <mptr_or_vec_elem_type_t <T>>>,
479
+ vec<std::conditional_t <
480
+ std::is_same<mptr_or_vec_elem_type_t <T>, half>::value,
481
+ mptr_or_vec_elem_type_t <T>,
482
+ select_cl_scalar_t <mptr_or_vec_elem_type_t <T>>>,
482
483
T::size ()>;
483
484
};
484
485
@@ -547,10 +548,10 @@ using SelectMatchingOpenCLType_t =
547
548
// Converts T to OpenCL friendly
548
549
//
549
550
template <typename T>
550
- using ConvertToOpenCLType_t = conditional_t <
551
+ using ConvertToOpenCLType_t = std:: conditional_t <
551
552
TryToGetVectorT<SelectMatchingOpenCLType_t<T>>::value,
552
553
typename TryToGetVectorT<SelectMatchingOpenCLType_t<T>>::type,
553
- conditional_t <
554
+ std:: conditional_t <
554
555
TryToGetPointerT<SelectMatchingOpenCLType_t<T>>::value,
555
556
typename TryToGetPointerVecT<SelectMatchingOpenCLType_t<T>>::type,
556
557
SelectMatchingOpenCLType_t<T>>>;
@@ -593,12 +594,12 @@ template <typename T> inline constexpr bool msbIsSet(const T x) {
593
594
// TODO: marray support isn't implemented yet.
594
595
template <typename T>
595
596
using common_rel_ret_t =
596
- conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, bool >;
597
+ std:: conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, bool >;
597
598
598
599
// TODO: Remove this when common_rel_ret_t is promoted.
599
600
template <typename T>
600
601
using internal_host_rel_ret_t =
601
- conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, int >;
602
+ std:: conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, int >;
602
603
#else
603
604
// SYCL 1.2.1 4.13.7 (Relation functions), e.g.
604
605
//
@@ -612,7 +613,7 @@ using internal_host_rel_ret_t =
612
613
// Fixing it would be an ABI-breaking change so isn't done.
613
614
template <typename T>
614
615
using common_rel_ret_t =
615
- conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, int >;
616
+ std:: conditional_t <is_vgentype<T>::value, make_singed_integer_t <T>, int >;
616
617
template <typename T> using internal_host_rel_ret_t = common_rel_ret_t <T>;
617
618
#endif
618
619
0 commit comments