我按照說明在Mac上安裝Caffe(僅限CPU),當運行「make -j」時出現錯誤。在Mac OS上安裝Caffe時'cblas.h'錯誤
In file included from src/caffe/util/blocking_queue.cpp:5:
In file included from ./include/caffe/layers/base_data_layer.hpp:9:
In file included from ./include/caffe/layer.hpp:12:
In file included from ./include/caffe/util/math_functions.hpp:11:
./include/caffe/util/mkl_alternate.hpp:14:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
^
1 error generated.
make: *** [.build_release/src/caffe/util/blocking_queue.o] Error 1
我加入行修改makefile.config:
USE_BLAS = apple
ADD_LDFLAGS = -I/usr/local/opt/openblas/lib
ADD_CFLAGS = -I/usr/local/opt/openblas/include
但它並沒有解決問題。
任何幫助或建議將不勝感激!
這對我有效。如下面的答案中所述,通過在'Makefile.config'中編輯'BLAS_INCLUDE'和'BLAS_LIB'的行來添加兩個構建標誌。 – Peter