Skip to content

Commit 6cb0404

Browse files
committed
[SYCL] Struct to class
Signed-off-by: Hu, Peisen <[email protected]>
1 parent 0bc640e commit 6cb0404

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sycl/test-e2e/GroupAlgorithm/root_group.cpp

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

107-
template <typename T> struct RootGroupFunctionsKernel {
108-
T m_testResults;
107+
template <typename T> class RootGroupFunctionsKernel {
108+
public:
109109
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();
@@ -128,6 +128,9 @@ template <typename T> struct RootGroupFunctionsKernel {
128128
return sycl::ext::oneapi::experimental::properties{
129129
sycl::ext::oneapi::experimental::use_root_sync};
130130
}
131+
132+
private:
133+
T m_testResults;
131134
};
132135

133136
void testRootGroupFunctions() {

0 commit comments

Comments
 (0)