From b46d31d4b642b6ab7397d6db7b8b4473b02b1827 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 5 Oct 2018 11:29:40 +0100 Subject: [PATCH] MKL enable on Eigen if Grid is configured to use MKL --- Grid/Grid_Eigen_Dense.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Grid/Grid_Eigen_Dense.h b/Grid/Grid_Eigen_Dense.h index 4fb5b831..dd330dd9 100644 --- a/Grid/Grid_Eigen_Dense.h +++ b/Grid/Grid_Eigen_Dense.h @@ -1,4 +1,9 @@ #pragma once +// Force Eigen to use MKL if Grid has been configured with --enable-mkl +#ifdef USE_MKL +#define EIGEN_USE_MKL_ALL +#endif + #if defined __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations"