diff --git a/include/FastFAM.h b/include/FastFAM.h index 80e1a7e5fc6f804dc17f8c0cd95362e3f929fb34..b81008e8739d918e681d86e7eb363b2112d7bc7c 100644 --- a/include/FastFAM.h +++ b/include/FastFAM.h @@ -19,8 +19,10 @@ #ifndef GCTA2_FASTFAM_H #define GCTA2_FASTFAM_H -#ifndef EIGEN_USE_MKL_ALL -#define EIGEN_USE_MKL_ALL +#if !defined(__aarch64__) + #ifndef EIGEN_USE_MKL_ALL + #define EIGEN_USE_MKL_ALL + #endif #endif #include "Logger.h" diff --git a/main/eigen_func.h b/main/eigen_func.h index b137ca3504845d4b11bbe672666e81078a8babf5..01f770e02659ec8a1b7e8209726804444ec336ea 100644 --- a/main/eigen_func.h +++ b/main/eigen_func.h @@ -12,8 +12,10 @@ #ifndef _EIGENFUNC_H #define _EIGENFUNC_H -#ifndef EIGEN_USE_MKL_ALL -#define EIGEN_USE_MKL_ALL +#if !defined(__aarch64__) + #ifndef EIGEN_USE_MKL_ALL + #define EIGEN_USE_MKL_ALL + #endif #endif #include "CommFunc.h" diff --git a/main/gcta.h b/main/gcta.h index a6049e8453dbf07b7ff122755faa211edc62f6d7..d23a857a8c3252eeedd443e2b1a8e32e3b1448b1 100644 --- a/main/gcta.h +++ b/main/gcta.h @@ -17,8 +17,10 @@ #define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET #endif -#ifndef EIGEN_USE_MKL_ALL -#define EIGEN_USE_MKL_ALL +#if !defined(__aarch64__) + #ifndef EIGEN_USE_MKL_ALL + #define EIGEN_USE_MKL_ALL + #endif #endif #include diff --git a/main/ld.cpp b/main/ld.cpp index cd8734a867f756ef910929fc3b96affb4922f288..835743271a98266b69b3148b2c9f158454459c61 100644 --- a/main/ld.cpp +++ b/main/ld.cpp @@ -1005,7 +1005,7 @@ void gcta::calcu_max_ld_rsq_blk(eigenVector &multi_rsq, eigenVector &multi_rsq_a } - SelfAdjointEigenSolver pca(rsq_sub.array()); + SelfAdjointEigenSolver pca(rsq_sub); // debug // ofstream tmp("tmp_R.txt"); diff --git a/src/FastFAM.cpp b/src/FastFAM.cpp index f86d6c3b97c8cba7e9115a4f4bd9edaabe32840f..d4b8fcb0be9bfda44c2397370a75a633a9f0525e 100644 --- a/src/FastFAM.cpp +++ b/src/FastFAM.cpp @@ -21,7 +21,11 @@ #include #include #include -#include + +#if !defined(__aarch64__) + #include +#endif + #include #include #include