diff options
author | Yan Zhou <anonymous@invalid.net> | 2014-09-08 17:37:58 +0800 |
---|---|---|
committer | Yan Zhou <anonymous@invalid.net> | 2014-09-08 17:37:58 +0800 |
commit | 4b678b96eb6cacf59ed19940bcafa1fa4e6f55c0 (patch) | |
tree | 116cd658a3ae7c28e0cf8473b8bd9702c11c0fb6 /Eigen/src/Core/util/MKL_support.h | |
parent | 51b3f558bb76c11149fc64971db786798f1b692c (diff) |
fix for MKL_BLAS not defined in MKL 11.2
Diffstat (limited to 'Eigen/src/Core/util/MKL_support.h')
-rw-r--r-- | Eigen/src/Core/util/MKL_support.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/MKL_support.h b/Eigen/src/Core/util/MKL_support.h index 8acca9c8c..1ef3b61db 100644 --- a/Eigen/src/Core/util/MKL_support.h +++ b/Eigen/src/Core/util/MKL_support.h @@ -76,6 +76,38 @@ #include <mkl_lapacke.h> #define EIGEN_MKL_VML_THRESHOLD 128 +/* MKL_DOMAIN_BLAS, etc are defined only in 10.3 update 7 */ +/* MKL_BLAS, etc are not defined in 11.2 */ +#ifdef MKL_DOMAIN_ALL +#define EIGEN_MKL_DOMAIN_ALL MKL_DOMAIN_ALL +#else +#define EIGEN_MKL_DOMAIN_ALL MKL_ALL +#endif + +#ifdef MKL_DOMAIN_BLAS +#define EIGEN_MKL_DOMAIN_BLAS MKL_DOMAIN_BLAS +#else +#define EIGEN_MKL_DOMAIN_BLAS MKL_BLAS +#endif + +#ifdef MKL_DOMAIN_FFT +#define EIGEN_MKL_DOMAIN_FFT MKL_DOMAIN_FFT +#else +#define EIGEN_MKL_DOMAIN_FFT MKL_FFT +#endif + +#ifdef MKL_DOMAIN_VML +#define EIGEN_MKL_DOMAIN_VML MKL_DOMAIN_VML +#else +#define EIGEN_MKL_DOMAIN_VML MKL_VML +#endif + +#ifdef MKL_DOMAIN_PARDISO +#define EIGEN_MKL_DOMAIN_PARDISO MKL_DOMAIN_PARDISO +#else +#define EIGEN_MKL_DOMAIN_PARDISO MKL_PARDISO +#endif + namespace Eigen { typedef std::complex<double> dcomplex; |