Disable tsan for micro-kernels which read out-of-bounds
Avoid spurious data races due of overlaps of out-of-bounds reads with writes by
another thread
PiperOrigin-RevId: 313691532
diff --git a/src/f32-clamp/sse.c.in b/src/f32-clamp/sse.c.in
index bc2196a..6ae04f2 100644
--- a/src/f32-clamp/sse.c.in
+++ b/src/f32-clamp/sse.c.in
@@ -18,7 +18,7 @@
size_t n,
const float* x,
float* y,
- const union xnn_f32_minmax_params params[restrict XNN_MIN_ELEMENTS(1)])
+ const union xnn_f32_minmax_params params[restrict XNN_MIN_ELEMENTS(1)]) XNN_DISABLE_TSAN
{
assert(n != 0);
assert(n % sizeof(float) == 0);