diff --git a/paddle/math/MathFunctions.h b/paddle/math/MathFunctions.h index 315e16bff773ee00c3a53d31d63d04a2d943e547..8c5f9dd479c9613075fdafff1b2e64a7cce93401 100644 --- a/paddle/math/MathFunctions.h +++ b/paddle/math/MathFunctions.h @@ -32,14 +32,9 @@ extern "C" { #include #endif -#ifdef PADDLE_USE_REFERENCE_CBLAS -extern "C" { -#include -} -#endif - #ifndef LAPACK_FOUND extern "C" { +#include int LAPACKE_sgetrf(int matrix_layout, int m, int n, int LAPACKE_dgetrf(int matrix_layout, int m, int n, double* a, int lda, int* ipiv); @@ -47,7 +42,7 @@ int LAPACKE_sgetri(int matrix_layout, int n, float* a, int lda, const int* ipiv); int LAPACKE_dgetri(int matrix_layout, int n, double* a, int lda, const int* ipiv); -}; +} #endif #include