Skip to content

Commit 6febd14

Browse files
committed
fix format
1 parent 5babe36 commit 6febd14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/group_local_memory_func.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ __attribute__((noinline)) int check(int *ref, int index) { return ref[index]; }
2020
// CHECK: #0 {{.*}} {{.*group_local_memory_func.cpp}}:[[@LINE-3]]
2121

2222
__attribute__((noinline)) int test_local(sycl::nd_item<1> &item) {
23-
auto local_mem = sycl::ext::oneapi::group_local_memory<int[group_size]>(item.get_group());
23+
auto local_mem =
24+
sycl::ext::oneapi::group_local_memory<int[group_size]>(item.get_group());
2425
// NOTE: direct access will be optimized out
2526
return check(*local_mem, group_size);
2627
}
@@ -31,9 +32,8 @@ int main() {
3132

3233
Q.submit([&](sycl::handler &h) {
3334
h.parallel_for<class MyKernel>(
34-
sycl::nd_range<1>(N, group_size), [=](sycl::nd_item<1> item) {
35-
data[0] = test_local(item);
36-
});
35+
sycl::nd_range<1>(N, group_size),
36+
[=](sycl::nd_item<1> item) { data[0] = test_local(item); });
3737
});
3838
Q.wait();
3939

0 commit comments

Comments
 (0)