I`m trying to compile caffe, and get such an output:
dmitry@dmitry-TravelMate-P253:~/odt/caffe-master$ make all
CXX src/caffe/internal_thread.cpp
In file included from ./include/caffe/util/math_functions.hpp:11:0,
from src/caffe/internal_thread.cpp:5:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
#include cblas.h
^
compilation terminated.
make: *** [.build_release/src/caffe/internal_thread.o] Error 1
I`m using OpenBLAS, and had already edited the Makefile.config:
BLAS := open
BLAS_INCLUDE := home/dmitry/odt/open-blas/include
BLAS_LIB := home/dmitry/odt/open-blas/lib
But error still appers. Does it try to use MKL instead of OpenBLAS, and how to fix that?
Try /home instead of home for BLAS_INCLUDE and BLAS_LIB?
sudo apt-get install libopenblas-dev solved the issue for me.
I am trying to setup Caffe in RHEL. But when i do 'make all' i am getting the following error
CXX src/caffe/blob.cpp
In file included from ./include/caffe/util/math_functions.hpp:11:0,
from src/caffe/blob.cpp:7:
./include/caffe/util/mkl_alternate.hpp:14:19: fatal error: cblas.h: No such file or directory
#include
^
compilation terminated.
make: * [.build_release/src/caffe/blob.o] Error 1
I have OpenBLAS installed and have set BLAS := open in Makefile.config as well
cblas.h on RHEL comes via yum install atlas-devel. It places it in /usr/include/
An old issue, and closed, but it is one of the top google hits.
I was getting interference from conda/bionconda cblas. Remember to deactivate conda before compiling. My bad ...
Most helpful comment
sudo apt-get install libopenblas-devsolved the issue for me.