Merge pull request #25454 from fengyuentau:fix_core_gemm_acc

core: fix `Core_GEMM.accuracy` failure on recent macOS
pull/25459/head
Alexander Smorkalov 10 months ago committed by GitHub
commit 5da17a4b03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      modules/core/src/matmul.simd.hpp

@ -394,19 +394,6 @@ GEMMSingleMul( const T* a_data, size_t a_step,
{
WT al(a_data[k]);
j=0;
#if CV_ENABLE_UNROLLED
for(; j <= m - 4; j += 4 )
{
WT t0 = d_buf[j] + WT(b_data[j])*al;
WT t1 = d_buf[j+1] + WT(b_data[j+1])*al;
d_buf[j] = t0;
d_buf[j+1] = t1;
t0 = d_buf[j+2] + WT(b_data[j+2])*al;
t1 = d_buf[j+3] + WT(b_data[j+3])*al;
d_buf[j+2] = t0;
d_buf[j+3] = t1;
}
#endif
for( ; j < m; j++ )
d_buf[j] += WT(b_data[j])*al;
}

Loading…
Cancel
Save