cmake编译caffe-windows时出现如下错误:
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake/Modules/FindAtlas.cmake:43 (find_package_handle_standard_args) cmake/Dependencies.cmake:128 (find_package) CMakeLists.txt:79 (include)
为了解决这个问题下了不少版本的openblas和lablas,但其实在caffe dependencies中都有,后来在google的caffe小组里有人提到把BLAS的Atlas改为Open即可解决,原文链接。试了一下确实可以,如下图所示:
这是cmake配置出错时出现的配置选项,找到BLAS那一行,点击Atlas,出现三个选项,如下图所示:
选择Open,重新点击Configure,它会去dependencies中找openblas的包,这样就能成功编译caffe-windows了。虽然编译好的工程还是跑不起来。
Found OpenBLAS libraries: C:/Users/Username/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/libopenblas.dll.a Found OpenBLAS include: C:/Users/Username/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include