File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
sycl/test-e2e/ThreadSanitizer Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ int main() {
13
13
14
14
Q.submit ([&](sycl::handler &cgh) {
15
15
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 ());
20
20
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
+ });
25
25
});
26
26
Q.wait ();
27
27
// CHECK: WARNING: DeviceSanitizer: data race
You can’t perform that action at this time.
0 commit comments