File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
sycl/test-e2e/ThreadSanitizer
unified-runtime/source/loader/layers/sanitizer/tsan Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,8 @@ int main() {
2121 sycl::buffer<int , 1 > buf (v.data (), v.size ());
2222 q.submit ([&](sycl::handler &h) {
2323 auto A = buf.get_access <sycl::access::mode::read_write>(h);
24- h.parallel_for <class Test >(
25- sycl::nd_range<1 >(N, 1 ),
26- [=](sycl::nd_item<1 >) { A[0 ]++; });
24+ h.parallel_for <class Test >(sycl::nd_range<1 >(N, 1 ),
25+ [=](sycl::nd_item<1 >) { A[0 ]++; });
2726 }).wait ();
2827 // CHECK: WARNING: DeviceSanitizer: data race
2928 // CHECK-NEXT: When write of size 4 at 0x{{.*}} in kernel <{{.*}}Test>
Original file line number Diff line number Diff line change @@ -21,9 +21,8 @@ int main() {
2121
2222 q.submit ([&](sycl::handler &cgh) {
2323 auto accessor = sub_buf.get_access <sycl::access::mode::read_write>(cgh);
24- cgh.parallel_for <class Test >(
25- sycl::nd_range<1 >(size_x / 2 , 1 ),
26- [=](sycl::nd_item<1 >) { accessor[0 ]++; });
24+ cgh.parallel_for <class Test >(sycl::nd_range<1 >(size_x / 2 , 1 ),
25+ [=](sycl::nd_item<1 >) { accessor[0 ]++; });
2726 }).wait ();
2827 // CHECK: WARNING: DeviceSanitizer: data race
2928 // CHECK-NEXT: When write of size 4 at 0x{{.*}} in kernel <{{.*}}Test>
@@ -32,4 +31,3 @@ int main() {
3231
3332 return 0 ;
3433}
35-
Original file line number Diff line number Diff line change 1212 */
1313
1414#include " tsan_buffer.hpp"
15- #include " tsan_interceptor.hpp"
1615#include " sanitizer_common/sanitizer_utils.hpp"
16+ #include " tsan_interceptor.hpp"
1717#include " ur_sanitizer_layer.hpp"
1818
1919namespace ur_sanitizer_layer {
You can’t perform that action at this time.
0 commit comments