We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a90239 commit 18ed413Copy full SHA for 18ed413
sycl/test-e2e/GroupAlgorithm/root_group.cpp
@@ -61,7 +61,7 @@ void testQueriesAndProperties() {
61
}
62
63
template <typename T> class TestKernel1 {
64
- T &m_data;
+ T m_data;
65
66
public:
67
TestKernel1(T &data_) : m_data(data_) {}
@@ -114,10 +114,10 @@ void testRootGroup() {
114
115
116
template <typename T> class TestKernel2 {
117
- T &m_testResults;
+ T m_testResults;
118
119
120
- TestKernel2(T testResults_) : m_testResults(testResults_) {}
+ TestKernel2(T &testResults_) : m_testResults(testResults_) {}
121
void operator()(sycl::nd_item<1> it) const {
122
const auto root = it.ext_oneapi_get_root_group();
123
if (root.leader() || root.get_local_id() == 3) {
0 commit comments