Enable avx512 plog with clang

This commit is contained in:
Gael Guennebaud 2018-10-11 10:12:21 +02:00
parent 2ef1b39674
commit b3f66d29a5
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ namespace Eigen {
namespace internal {
// Disable the code for older versions of gcc that don't support many of the required avx512 instrinsics.
#if EIGEN_GNUC_AT_LEAST(5, 3)
#if EIGEN_GNUC_AT_LEAST(5, 3) || EIGEN_COMP_CLANG
#define _EIGEN_DECLARE_CONST_Packet16f(NAME, X) \
const Packet16f p16f_##NAME = pset1<Packet16f>(X)

View File

@ -55,7 +55,7 @@ template<> struct packet_traits<float> : default_packet_traits
size = 16,
HasHalfPacket = 1,
HasBlend = 0,
#if EIGEN_GNUC_AT_LEAST(5, 3)
#if EIGEN_GNUC_AT_LEAST(5, 3) || EIGEN_COMP_CLANG
#ifdef EIGEN_VECTORIZE_AVX512DQ
HasLog = 1,
#endif