Add Lapack warning

feature/design_of_v2_layer_converter
liaogang 8 years ago
parent 20cda7bd23
commit f9e36971f3

@ -15,7 +15,6 @@
INCLUDE(cblas)
IF(NOT ${CBLAS_FOUND})
SET(LAPACK_FOUND OFF)
INCLUDE(ExternalProject)
SET(CBLAS_SOURCES_DIR ${THIRD_PARTY_PATH}/openblas)

@ -236,8 +236,16 @@ TEST(Matrix, unary) {
testMatrixTranspose(height, width);
testMatrixRotate(height, width);
}
#ifdef LAPACK_FOUND
// inverse matrix
testMatrixInverse(height);
#else
LOG(WARNING) << "Cannot run Matrix Inverse Unit Test.\n"
<< "Failed to find lapack library in current system.\n"
<< "To address this issue, Please adopt one of the following approaches: \n"
<< "1. Simply issue `sudo apt-get install liblapacke-dev` to avoid re-build source code. \n"
<< "2. Install MKL/Openblas/ATLAS and re-build PaddlePaddle source code."
#endif
}
}

Loading…
Cancel
Save