Skip to content

Commit 8bc09e3

Browse files
committed
fix format
1 parent fa87eba commit 8bc09e3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sycl/test-e2e/ThreadSanitizer/local_accessor.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ int main() {
1313

1414
Q.submit([&](sycl::handler &cgh) {
1515
auto acc = sycl::local_accessor<int>(1, cgh);
16-
cgh.parallel_for<class Test>(
17-
sycl::nd_range<1>(128, 16), [=](sycl::nd_item<1> item) {
18-
acc[0] += item.get_global_linear_id();
19-
check(&acc[0], item.get_local_linear_id());
16+
cgh.parallel_for<class Test>(sycl::nd_range<1>(128, 16),
17+
[=](sycl::nd_item<1> item) {
18+
acc[0] += item.get_global_linear_id();
19+
check(&acc[0], item.get_local_linear_id());
2020

21-
item.barrier();
22-
if (item.get_global_linear_id() == 0)
23-
*sum = acc[0];
24-
});
21+
item.barrier();
22+
if (item.get_global_linear_id() == 0)
23+
*sum = acc[0];
24+
});
2525
});
2626
Q.wait();
2727
// CHECK: WARNING: DeviceSanitizer: data race

0 commit comments

Comments
 (0)