From 559320745e87984fd863b535932105177e5ad795 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 15 Feb 2019 10:30:28 +0100 Subject: [PATCH] bug #1678: Fix lack of __FMA__ macro on MSVC with AVX512 --- Eigen/src/Core/util/ConfigureVectorization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/ConfigureVectorization.h b/Eigen/src/Core/util/ConfigureVectorization.h index 68765d4b2..b00d8b038 100644 --- a/Eigen/src/Core/util/ConfigureVectorization.h +++ b/Eigen/src/Core/util/ConfigureVectorization.h @@ -261,7 +261,7 @@ #define EIGEN_VECTORIZE_FMA #endif #if defined(__AVX512F__) - #ifndef __FMA__ + #ifndef EIGEN_VECTORIZE_FMA #if EIGEN_COMP_GNUC #error Please add -mfma to your compiler flags: compiling with -mavx512f alone without SSE/AVX FMA is not supported (bug 1638). #else