Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Bogoychev <nheart@gmail.com>2020-03-26 13:20:11 +0300
committerNikolay Bogoychev <nheart@gmail.com>2020-03-26 13:20:11 +0300
commitac7ee0ed41d0c321ef48909d4fdfd53e2461495e (patch)
tree4e2c0ce3297d93ccef3b9c7333f60c9bc3af9c2b
parent6917f9d8f31c39e10d8c877c8307b1aee548ba0f (diff)
parent97c6ebba1f176d4b779fea454c9be1f17fcfadcc (diff)
Merge remote-tracking branch 'origin/master' into warning_fail
-rw-r--r--multiply.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/multiply.h b/multiply.h
index ee2196e..50f548b 100644
--- a/multiply.h
+++ b/multiply.h
@@ -81,7 +81,9 @@ static inline INTGEMM_AVX512F float MaxFloat32(__m512 a) {
}
static inline INTGEMM_AVX512F float horizontalSum(__m512 a) {
- return _mm512_reduce_add_ps(a);
+ __m256 low = _mm512_castps512_ps256(a);
+ __m256 high = _mm256_castpd_ps(_mm512_extractf64x4_pd(_mm512_castps_pd(a),1));
+ return horizontalSum(low) + horizontalSum(high);
}
#endif