Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cblas.h : no such file or directory #3599

Closed
da-eremin opened this issue Jan 25, 2016 · 5 comments
Closed

cblas.h : no such file or directory #3599

da-eremin opened this issue Jan 25, 2016 · 5 comments

Comments

@da-eremin
Copy link

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?

@SvenTwo
Copy link

SvenTwo commented Jan 26, 2016

Try /home instead of home for BLAS_INCLUDE and BLAS_LIB?

@BhushanGarware
Copy link

sudo apt-get install libopenblas-dev solved the issue for me.

@indsak
Copy link

indsak commented Mar 22, 2017

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 <cblas.h>
^
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

@chris-conklin
Copy link

cblas.h on RHEL comes via yum install atlas-devel. It places it in /usr/include/

@colindaven
Copy link

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@chris-conklin @colindaven @SvenTwo @da-eremin @BhushanGarware @indsak and others