@@ -73,7 +73,7 @@ template <typename Group, typename Ptr, class Function>
73
73
Function for_each (Group g, Ptr first, Ptr last, Function f) {
74
74
#ifdef __SYCL_DEVICE_ONLY__
75
75
nd_item<Group::dimensions> it =
76
- ::sycl::detail::Builder::getNDItem<Group::dimensions>();
76
+ cl ::sycl::detail::Builder::getNDItem<Group::dimensions>();
77
77
ptrdiff_t offset = it.get_local_linear_id ();
78
78
ptrdiff_t stride = detail::get_local_linear_range (g);
79
79
for (Ptr p = first + offset; p < last; p += stride) {
@@ -91,18 +91,16 @@ Function for_each(Group g, Ptr first, Ptr last, Function f) {
91
91
namespace intel {
92
92
93
93
template <typename T>
94
- using EnableIfIsScalarArithmetic =
95
- ::sycl::detail::enable_if_t <::sycl::detail::is_scalar_arithmetic<T>::value,
96
- T>;
94
+ using EnableIfIsScalarArithmetic = cl::sycl::detail::enable_if_t <
95
+ cl::sycl::detail::is_scalar_arithmetic<T>::value, T>;
97
96
98
97
template <typename T>
99
- using EnableIfIsVectorArithmetic =
100
- ::sycl::detail::enable_if_t <::sycl::detail::is_vector_arithmetic<T>::value,
101
- T>;
98
+ using EnableIfIsVectorArithmetic = cl::sycl::detail::enable_if_t <
99
+ cl::sycl::detail::is_vector_arithmetic<T>::value, T>;
102
100
103
101
template <typename Ptr, typename T>
104
102
using EnableIfIsPointer =
105
- ::sycl::detail::enable_if_t <::sycl::detail::is_pointer<Ptr>::value, T>;
103
+ cl ::sycl::detail::enable_if_t <cl ::sycl::detail::is_pointer<Ptr>::value, T>;
106
104
107
105
template <typename Group> bool all_of (Group g, bool pred) {
108
106
static_assert (detail::is_group<Group>::value,
@@ -488,7 +486,7 @@ exclusive_scan(Group g, InPtr first, InPtr last, OutPtr result, T init,
488
486
" Result type of binary_op must match scan accumulation type." );
489
487
#ifdef __SYCL_DEVICE_ONLY__
490
488
nd_item<Group::dimensions> it =
491
- ::sycl::detail::Builder::getNDItem<Group::dimensions>();
489
+ cl ::sycl::detail::Builder::getNDItem<Group::dimensions>();
492
490
ptrdiff_t offset = it.get_local_linear_id ();
493
491
ptrdiff_t stride = detail::get_local_linear_range (g);
494
492
ptrdiff_t N = last - first;
@@ -607,7 +605,7 @@ inclusive_scan(Group g, InPtr first, InPtr last, OutPtr result,
607
605
" Result type of binary_op must match scan accumulation type." );
608
606
#ifdef __SYCL_DEVICE_ONLY__
609
607
nd_item<Group::dimensions> it =
610
- ::sycl::detail::Builder::getNDItem<Group::dimensions>();
608
+ cl ::sycl::detail::Builder::getNDItem<Group::dimensions>();
611
609
ptrdiff_t offset = it.get_local_linear_id ();
612
610
ptrdiff_t stride = detail::get_local_linear_range (g);
613
611
ptrdiff_t N = last - first;
@@ -653,7 +651,7 @@ template <typename Group> bool leader(Group g) {
653
651
" Group algorithms only support the sycl::group class." );
654
652
#ifdef __SYCL_DEVICE_ONLY__
655
653
nd_item<Group::dimensions> it =
656
- ::sycl::detail::Builder::getNDItem<Group::dimensions>();
654
+ cl ::sycl::detail::Builder::getNDItem<Group::dimensions>();
657
655
typename Group::linear_id_type linear_id = it.get_local_linear_id ();
658
656
return (linear_id == 0 );
659
657
#else
0 commit comments