File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
sycl/test-e2e/GroupAlgorithm Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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++) {
You can’t perform that action at this time.
0 commit comments