Generalized predux4 to support AVX512 packets, and renamed it predux_half.

Disabled the implementation of pabs for avx512 since the corresponding intrinsics are not shipped with gcc
This commit is contained in:
Benoit Steiner
2016-02-01 14:35:51 -08:00
parent c1a42c2d0d
commit 85b6d82b49
3 changed files with 8 additions and 6 deletions

View File

@@ -314,7 +314,7 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Pack
*/
template<typename Packet> EIGEN_DEVICE_FUNC inline
typename conditional<(unpacket_traits<Packet>::size%8)==0,typename unpacket_traits<Packet>::half,Packet>::type
predux4(const Packet& a)
predux_half(const Packet& a)
{ return a; }
/** \internal \returns the product of the elements of \a a*/