@@ -75,8 +75,8 @@ void testRootGroup() {
7575 struct TestKernel1 {
7676 sycl::buffer<bool > *m_dataBuf;
7777 sycl::handler *m_h;
78- TestKernel1 (sycl::buffer<bool > dataBuf, sycl::handler h)
79- : m_dataBuf(& dataBuf), m_h(& h) {}
78+ TestKernel1 (sycl::buffer<bool > * dataBuf, sycl::handler * h)
79+ : m_dataBuf(dataBuf), m_h(h) {}
8080 void operator ()(sycl::nd_item<1 > it) const {
8181 sycl::accessor data{*m_dataBuf, *m_h};
8282 volatile float X = 1 .0f ;
@@ -104,7 +104,7 @@ void testRootGroup() {
104104 }
105105 };
106106 q.submit ([&](sycl::handler &h) {
107- h.parallel_for <class RootGroupKernel >(range, TestKernel1 (dataBuf, h));
107+ h.parallel_for <class RootGroupKernel >(range, TestKernel1 (& dataBuf, & h));
108108 });
109109 sycl::host_accessor data{dataBuf};
110110 const int workItemCount = static_cast <int >(range.get_global_range ().size ());
@@ -129,8 +129,8 @@ void testRootGroupFunctions() {
129129 struct TestKernel2 {
130130 sycl::buffer<bool > *m_testResultsBuf;
131131 sycl::handler *m_h;
132- TestKernel2 (sycl::buffer<bool > testResultsBuf, sycl::handler h)
133- : m_testResultsBuf(& testResultsBuf), m_h(& h) {}
132+ TestKernel2 (sycl::buffer<bool > * testResultsBuf, sycl::handler * h)
133+ : m_testResultsBuf(testResultsBuf), m_h(h) {}
134134 void operator ()(sycl::nd_item<1 > it) const {
135135 sycl::accessor testResults{*m_testResultsBuf, *m_h};
136136 const auto root = it.ext_oneapi_get_root_group ();
@@ -157,7 +157,7 @@ void testRootGroupFunctions() {
157157
158158 q.submit ([&](sycl::handler &h) {
159159 h.parallel_for <class RootGroupFunctionsKernel >(
160- range, TestKernel2 (testResultsBuf, h));
160+ range, TestKernel2 (& testResultsBuf, & h));
161161 });
162162 sycl::host_accessor testResults{testResultsBuf};
163163 for (int i = 0 ; i < testCount; i++) {
0 commit comments