Skip to content

Commit 6750b64

Browse files
committed
fix format
1 parent 8158c9d commit 6750b64

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

sycl/test-e2e/MemorySanitizer/check_large_access.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
int main() {
1111
sycl::buffer<sycl::int3, 1> b(sycl::range<1>(2));
1212
sycl::queue myQueue;
13-
myQueue.submit([&](sycl::handler &cgh) {
14-
auto B = b.get_access<sycl::access::mode::read_write>(cgh);
15-
cgh.parallel_for<class MyKernel>(sycl::range<1>{2}, [=](sycl::id<1> ID) {
16-
B[ID] = sycl::int3{(sycl::int3)ID[0]} / B[ID];
17-
});
18-
}).wait();
13+
myQueue
14+
.submit([&](sycl::handler &cgh) {
15+
auto B = b.get_access<sycl::access::mode::read_write>(cgh);
16+
cgh.parallel_for<class MyKernel>(
17+
sycl::range<1>{2}, [=](sycl::id<1> ID) {
18+
B[ID] = sycl::int3{(sycl::int3)ID[0]} / B[ID];
19+
});
20+
})
21+
.wait();
1922
// CHECK: use-of-uninitialized-value
2023
// CHECK: kernel <{{.*MyKernel}}>
2124

2225
return 0;
23-
}
26+
}

0 commit comments

Comments
 (0)