AVX512f includes FMA but GCC does not define __FMA__ with -mavx512f only

This commit is contained in:
Gael Guennebaud
2018-12-06 18:21:56 +01:00
parent 1d683ae2f5
commit cbf2f4b7a0
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ namespace internal {
#define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS (2*sizeof(void*))
#endif
#ifdef __FMA__
#ifdef EIGEN_VECTORIZE_FMA
#ifndef EIGEN_HAS_SINGLE_INSTRUCTION_MADD
#define EIGEN_HAS_SINGLE_INSTRUCTION_MADD 1
#endif