Cmake Fortran sgemm无法';在构建特征3时找不到

Cmake Fortran sgemm无法';在构建特征3时找不到,cmake,fortran,eigen3,intel-mkl,Cmake,Fortran,Eigen3,Intel Mkl,我在Windows上使用Intel MKL for Egen 3。制作文件时,CMake找到了BLAS库(即英特尔MKL库),但在查找Fortran sgemm部分时失败。错误如下所示: Try to find BLAS libraries: mkl_intel_lp64_dll;mkl_sequential_dll;mkl_core_dll BLAS libs found for BLA_VENDOR All.Try to compile symbol sgemm with following

我在Windows上使用Intel MKL for Egen 3。制作文件时,CMake找到了BLAS库(即英特尔MKL库),但在查找Fortran sgemm部分时失败。错误如下所示:

Try to find BLAS libraries: mkl_intel_lp64_dll;mkl_sequential_dll;mkl_core_dll
BLAS libs found for BLA_VENDOR All.Try to compile symbol sgemm with following libraries:;/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64_win/mkl_intel_lp64_dll.lib;/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64_win/mkl_sequential_dll.lib;/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64_win/mkl_core_dll.lib;;;
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
我的命令:

cmake .. -G "Visual Studio 15 2017 Win64" -DBLAS_VERBOSE=ON -DBLAS_DIR=my/blas/dir"
我的cmake版本是
3.11.3

我在互联网上找到了Fortran
sgemm
,但我不确定下一步要做什么,比如我应该在哪里添加
sgemm
文件,否则如果我把
sgemm
放错了,性能就会下降。我对这个很陌生,我不想使用OpenBLAS


谢谢你的帮助

例如,请指定您正在使用的CMake版本。您可能在internet上找到的
sgemm.f
文件不太可能在任何地方提供与英特尔MKL一样经过优化的
sgemm
子例程。查找
sgemm
的尝试可能与检查BLAS库是否可用有关,实际需要的一个或多个精确子程序可能不同。这组库
mkl_英特尔lp64_dll
mkl_顺序dll
mkl_核心dll
应提供
sgemm
@VladimirF@ripero My command:
cmake-G“Visual Studio 15 2017 Win64”-DBLAS_VERBOSE=ON-DBLAS_DIR=my/blas/DIR“
我的cmake版本是
3.11.3
SGEMM应由MKL提供,不要搜索任何其他内容。