mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
AVX512: _mm512_rsqrt28_ps is available for AVX512ER only
This commit is contained in:
parent
584951ca4d
commit
40b4bf3d32
@ -183,6 +183,9 @@
|
|||||||
#ifdef __AVX512DQ__
|
#ifdef __AVX512DQ__
|
||||||
#define EIGEN_VECTORIZE_AVX512DQ
|
#define EIGEN_VECTORIZE_AVX512DQ
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __AVX512ER__
|
||||||
|
#define EIGEN_VECTORIZE_AVX512ER
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// include files
|
// include files
|
||||||
|
@ -375,7 +375,7 @@ prsqrt<Packet8d>(const Packet8d& _x) {
|
|||||||
// Insert NaNs and Infs in all the right places.
|
// Insert NaNs and Infs in all the right places.
|
||||||
return _mm512_mask_blend_pd(le_zero_mask, x, infs_and_nans);
|
return _mm512_mask_blend_pd(le_zero_mask, x, infs_and_nans);
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(EIGEN_VECTORIZE_AVX512ER)
|
||||||
template <>
|
template <>
|
||||||
EIGEN_STRONG_INLINE Packet16f prsqrt<Packet16f>(const Packet16f& x) {
|
EIGEN_STRONG_INLINE Packet16f prsqrt<Packet16f>(const Packet16f& x) {
|
||||||
return _mm512_rsqrt28_ps(x);
|
return _mm512_rsqrt28_ps(x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user