我无法使用CMake将MKL数学库链接到我的项目。 CMake配置使用以下命令查找LAPACK和BLAS:
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
我的路径中有一个很好的MKL安装。我如何告诉CMake使用它?
我尝试了各种版本:
ccmake .. -DCMAKE_Fortran_COMPILER:PATH=ifort
-DBLAS_LIBRARIES=path/to/mkl/lib/intel64/libmkl_blas95_lp64.a
-DLAPACK_LIBRARIES=path/to/mkl/lib/intel64/libmkl_lapack95_lp64.a
但在Make with errors中的链接步骤中总是失败,例如
undefined reference to `dgesvd_'