File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
sycl/test-e2e/MemorySanitizer Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1010int 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+ }
You can’t perform that action at this time.
0 commit comments