Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 92aed83

Browse files
authored
[SYCL] Fix one of reduction tests failing if add sycl::reduction (#177)
This test failed due to usage of cl::sycl::ONEAPI and cl::sycl namespaces, which caused error after adding sycl::reduction in intel/llvm#3315 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 50104a0 commit 92aed83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SYCL/Reduction/reduction_reducer_op_eq.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <iostream>
1212

1313
using namespace sycl;
14-
using namespace sycl::ONEAPI;
1514

1615
struct XY {
1716
constexpr XY() : X(0), Y(0) {}
@@ -94,7 +93,7 @@ int test(T Identity) {
9493
}
9594

9695
*Res = Identity;
97-
auto Red = reduction(Res, Identity, BOp);
96+
auto Red = ONEAPI::reduction(Res, Identity, BOp);
9897
nd_range<1> NDR{N, L};
9998
if constexpr (OpEq == PlusEq) {
10099
auto Lambda = [=](nd_item<1> ID, auto &Sum) {

0 commit comments

Comments
 (0)