Skip to content

Commit 8dc7a63

Browse files
committed
[SYCL] Should pass--kernel 2 name change
Signed-off-by: Hu, Peisen <[email protected]>
1 parent 85a228b commit 8dc7a63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sycl/test-e2e/GroupAlgorithm/root_group.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ void testRootGroup() {
104104
}
105105
}
106106

107-
template <typename T> struct TestKernel2 {
107+
template <typename T> struct RootGroupFunctionsKernel {
108108
T m_testResults;
109-
TestKernel2(T &testResults_) : m_testResults(testResults_) {}
109+
RootGroupFunctionsKernel(T &testResults_) : m_testResults(testResults_) {}
110110
void operator()(sycl::nd_item<1> it) const {
111111
const auto root = it.ext_oneapi_get_root_group();
112112
if (root.leader() || root.get_local_id() == 3) {
@@ -146,8 +146,7 @@ void testRootGroupFunctions() {
146146
const auto range = sycl::nd_range<1>{maxWGs * WorkGroupSize, WorkGroupSize};
147147
q.submit([&](sycl::handler &h) {
148148
sycl::accessor testResults{testResultsBuf, h};
149-
h.parallel_for<class RootGroupFunctionsKernel>(range,
150-
TestKernel2(testResults));
149+
h.parallel_for(range, RootGroupFunctionsKernel(testResults));
151150
});
152151
sycl::host_accessor testResults{testResultsBuf};
153152
for (int i = 0; i < testCount; i++) {

0 commit comments

Comments
 (0)