Skip to content

Commit 8164ff2

Browse files
committed
Update tests to use indeterminate constructor instead of default one
1 parent e574aa7 commit 8164ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/WorkGroupMemory/swap_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ template <typename T> void swap_scalar(T &a, T &b) {
4949
syclexp::work_group_memory<T> temp{cgh};
5050
sycl::nd_range<1> ndr{size, wgsize};
5151
cgh.parallel_for(ndr, [=](sycl::nd_item<1> it) {
52-
syclexp::work_group_memory<T> temp2;
52+
syclexp::work_group_memory<T> temp2{ syclexp::indeterminate };
5353
temp2 = temp; // temp and temp2 have the same underlying data
5454
temp = acc_a[0];
5555
acc_a[0] = acc_b[0];
@@ -264,7 +264,7 @@ void swap_array_2d(T (&a)[N][N], T (&b)[N][N], size_t batch_size) {
264264
const auto j = it.get_global_id()[1];
265265
temp[i][j] = acc_a[i][j];
266266
acc_a[i][j] = acc_b[i][j];
267-
syclexp::work_group_memory<T[N][N]> temp2;
267+
syclexp::work_group_memory<T[N][N]> temp2{ syclexp::indeterminate };
268268
temp2 = temp;
269269
acc_b[i][j] = temp2[i][j];
270270
});

0 commit comments

Comments
 (0)