+//! Helper function so that we can run TSAN with SIMD support (where implemented).
+template <int align>
+static inline void gmx_simdcall
+gatherLoadUTransposeTSANSafe(const real *base,
+ const std::int32_t *offset,
+ SimdReal *v0,
+ SimdReal *v1,
+ SimdReal *v2)
+{
+#if (CMAKE_BUILD_TYPE == CMAKE_BUILD_TYPE_TSAN) && GMX_SIMD_X86_AVX2_256
+ // This function is only implemented in this case
+ gatherLoadUTransposeSafe<align>(base, offset, v0, v1, v2);
+#else
+ gatherLoadUTranspose<align>(base, offset, v0, v1, v2);
+#endif
+}
+