Skip to content

Commit c92f0c4

Browse files
committed
Added explicit aliases to remained function objects
1 parent b459bab commit c92f0c4

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

sycl/include/CL/sycl/functional.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ template <typename T = void> using multiplies = std::multiplies<T>;
1717
template <typename T = void> using bit_or = std::bit_or<T>;
1818
template <typename T = void> using bit_xor = std::bit_xor<T>;
1919
template <typename T = void> using bit_and = std::bit_and<T>;
20-
template <typename T = void> using logical_and = std::logical_and<T>;
21-
template <typename T = void> using logical_or = std::logical_or<T>;
2220

2321
template <typename T = void> struct minimum {
2422
T operator()(const T &lhs, const T &rhs) const {

sycl/test/on-device/group_algorithms_sycl2020/exclusive_scan.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ int main() {
151151
std::numeric_limits<int>::lowest());
152152

153153
#ifdef SPIRV_1_3
154-
test<class KernelName_VzAPutpBRRJrQPB>(q, input, output, multiplies<int>(),
154+
test<class KernelName_VzAPutpBRRJrQPB>(q, input, output, sycl::multiplies<int>(),
155155
1);
156-
test<class KernelName_UXdGbr>(q, input, output, bit_or<int>(), 0);
157-
test<class KernelName_saYaodNyJknrPW>(q, input, output, bit_xor<int>(), 0);
158-
test<class KernelName_GPcuAlvAOjrDyP>(q, input, output, bit_and<int>(), ~0);
156+
test<class KernelName_UXdGbr>(q, input, output, sycl::bit_or<int>(), 0);
157+
test<class KernelName_saYaodNyJknrPW>(q, input, output, sycl::bit_xor<int>(), 0);
158+
test<class KernelName_GPcuAlvAOjrDyP>(q, input, output, sycl::bit_and<int>(), ~0);
159159
#endif // SPIRV_1_3
160160

161161
std::cout << "Test passed." << std::endl;

sycl/test/on-device/group_algorithms_sycl2020/inclusive_scan.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ int main() {
152152

153153
#ifdef SPIRV_1_3
154154
test<class KernelName_zMyjxUrBgeUGoxmDwhvJ>(q, input, output,
155-
multiplies<int>(), 1);
156-
test<class KernelName_SljjtroxNRaAXoVnT>(q, input, output, bit_or<int>(), 0);
157-
test<class KernelName_yXIZfjwjxQGiPeQAnc>(q, input, output, bit_xor<int>(),
155+
sycl::multiplies<int>(), 1);
156+
test<class KernelName_SljjtroxNRaAXoVnT>(q, input, output, sycl::bit_or<int>(), 0);
157+
test<class KernelName_yXIZfjwjxQGiPeQAnc>(q, input, output, sycl::bit_xor<int>(),
158158
0);
159-
test<class KernelName_xGnAnMYHvqekCk>(q, input, output, bit_and<int>(), ~0);
159+
test<class KernelName_xGnAnMYHvqekCk>(q, input, output, sycl::bit_and<int>(), ~0);
160160
#endif // SPIRV_1_3
161161

162162
std::cout << "Test passed." << std::endl;

sycl/test/on-device/group_algorithms_sycl2020/reduce.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ int main() {
8888

8989
#ifdef SPIRV_1_3
9090
test<class KernelName_WonwuUVPUPOTKRKIBtT>(q, input, output,
91-
multiplies<int>(), 1);
92-
test<class KernelName_qYBaJDZTMGkdIwD>(q, input, output, bit_or<int>(), 0);
93-
test<class KernelName_eLSFt>(q, input, output, bit_xor<int>(), 0);
94-
test<class KernelName_uFhJnxSVhNAiFPTG>(q, input, output, bit_and<int>(), ~0);
91+
sycl::multiplies<int>(), 1);
92+
test<class KernelName_qYBaJDZTMGkdIwD>(q, input, output, sycl::bit_or<int>(), 0);
93+
test<class KernelName_eLSFt>(q, input, output, sycl::bit_xor<int>(), 0);
94+
test<class KernelName_uFhJnxSVhNAiFPTG>(q, input, output, sycl::bit_and<int>(), ~0);
9595
#endif // SPIRV_1_3
9696

9797
std::cout << "Test passed." << std::endl;

0 commit comments

Comments
 (0)