Skip to content

Commit 37dc53b

Browse files
committed
[SYCL]Switch back to struct for consistency in code
Signed-off-by: Hu, Peisen <[email protected]>
1 parent 4b350a7 commit 37dc53b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sycl/test-e2e/GroupAlgorithm/root_group.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ void testQueriesAndProperties() {
6060
check_max_num_work_group_sync(maxWGsWithLimits);
6161
}
6262

63-
template <typename T> class TestKernel1 {
63+
template <typename T> struct TestKernel1 {
6464
T m_data;
65-
66-
public:
6765
TestKernel1(T &data_) : m_data(data_) {}
6866
void operator()(sycl::nd_item<1> it) const {
6967
volatile float X = 1.0f;
@@ -113,10 +111,8 @@ void testRootGroup() {
113111
}
114112
}
115113

116-
template <typename T> class TestKernel2 {
114+
template <typename T> struct TestKernel2 {
117115
T m_testResults;
118-
119-
public:
120116
TestKernel2(T &testResults_) : m_testResults(testResults_) {}
121117
void operator()(sycl::nd_item<1> it) const {
122118
const auto root = it.ext_oneapi_get_root_group();

0 commit comments

Comments
 (0)