Skip to content

Commit 6ef823e

Browse files
committed
Improve swap test
1 parent 0f677c2 commit 6ef823e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/test-e2e/WorkGroupMemory/swap_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ void swap_array_2d(T (&a)[N][N], T (&b)[N][N], size_t batch_size) {
306306
"Incorrect swap!");
307307
}
308308
}
309-
309+
310310
// Same as above but use an unbounded array as temporary storage
311-
{
311+
{
312312
sycl::buffer<T, 2> buf_a{a[0], sycl::range{N, N}};
313313
sycl::buffer<T, 2> buf_b{b[0], sycl::range{N, N}};
314314
q.submit([&](sycl::handler &cgh) {
@@ -325,7 +325,7 @@ void swap_array_2d(T (&a)[N][N], T (&b)[N][N], size_t batch_size) {
325325
acc_b[i][j] = temp2[i][j];
326326
});
327327
});
328-
}
328+
}
329329
for (int i = 0; i < N; ++i) {
330330
for (int j = 0; j < N; ++j) {
331331
// Four swaps are the same as no swap

0 commit comments

Comments
 (0)