aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-11-09 10:58:38 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-11-09 10:58:38 +0100
commit5fa79f96b8df069a5babb4e022fa43529062686f (patch)
treea028d3e85cb901e247dd9301384fb4281075bb1a /Eigen/src/Core
parent4c03b3511e055817a4c1aa2858bd5735cb5bb4e7 (diff)
Patch from Konstantin Arturov to enable MKL's direct call by default
Diffstat (limited to 'Eigen/src/Core')
-rwxr-xr-xEigen/src/Core/util/MKL_support.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/MKL_support.h b/Eigen/src/Core/util/MKL_support.h
index b7d6ecc76..014ba1e3e 100755
--- a/Eigen/src/Core/util/MKL_support.h
+++ b/Eigen/src/Core/util/MKL_support.h
@@ -55,7 +55,11 @@
#if defined EIGEN_USE_MKL
-# include <mkl.h>
+# ifndef MKL_DIRECT_CALL
+# define MKL_DIRECT_CALL
+# define MKL_DIRECT_CALL_JUST_SET
+# endif
+# include <mkl.h>
/*Check IMKL version for compatibility: < 10.3 is not usable with Eigen*/
# ifndef INTEL_MKL_VERSION
# undef EIGEN_USE_MKL /* INTEL_MKL_VERSION is not even defined on older versions */
@@ -69,6 +73,9 @@
# undef EIGEN_USE_MKL_VML
# undef EIGEN_USE_LAPACKE_STRICT
# undef EIGEN_USE_LAPACKE
+# ifdef MKL_DIRECT_CALL_JUST_SET
+# undef MKL_DIRECT_CALL
+# endif
# endif
#endif