-
Notifications
You must be signed in to change notification settings - Fork 152
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 missing, cannot build using make or cmake OSX 10.10 #36
Comments
it seems that you did not set up your cBLAS library. which c version of BLAS you are using? you should set up the path variables so the cake will find colas.h file.
|
I was using OpenBLAS, is that not a c BLAS? I also set the BLAS attributes in the Makefile.config to be BLAS := open. Should I be setting the BLAS somewhere other than Makefile.config? |
|
I installed openblas with Homebrew before all of this already. Like I said: "I have tried reinstalling all of my dependencies via homebrew" Brew list returns this: |
You need to uncomment include and lib defines to add openblas from brew. It is just below where BLAS := open |
Here's what it was when I opened it up just now: BLAS choice:atlas for ATLAS (default)mkl for MKLopen for OpenBlasBLAS := open Custom (MKL/ATLAS/OpenBLAS) include and lib directories.Leave commented to accept the defaults for your choice of BLAS(which should work)!BLAS_INCLUDE := /path/to/your/blasBLAS_LIB := /path/to/your/blasHomebrew puts openblas in a directory that is not on the standard search pathBLAS_INCLUDE := $(shell brew --prefix openblas)/include Shouldn't that already be including Homebrew OpenBLAS? Thanks for walking through this step by step with me. |
That should be all you need. The |
Thanks Victor. It's still not compiling. I just made a fresh directory and reconfigured everything from scratch but I'm still getting the same error. I've looked at my file structure and found cblas.h but for some reason the compilation isn't seeing it. Is there a way to manually specify the dir of cblas.h in my Makefile besides the standard defining of OpenBLAS? Maybe in the # Whatever else you find you need goes here. section of the makefile? Or could I bring it in to a root area for the actual make? I'm grasping at straws here. |
Same happened for me too on 10.11 |
@dendisuhubdy Did you ever fix it? |
@matthewbahr it's been 5 days now. I tried changing
to include the BLAS include and library directories. It didn't work too. Is there any confirmation that the compilation works on Ubuntu 14.04? |
What does |
My brew --prefix openblas returns /usr/local/opt/openblas I just upgraded to OSX 10.11.5 and am trying again. |
@dendisuhubdy Unsure if there is any confirmation. I'm trying it on 10.11.5 because I recently updated. |
This solved the problem for me: |
@tpanum thanks! |
@tpanum Do I need to add it to MakeFile.config ? |
@ShivangiM No, just add the flag I mentioned to the |
@tpanum thank you. It works |
@tpanum thanks a lot. It works very well. |
The instruction below works for me.
$ brew install openblas
# set to open
BLAS := open
# uncomment below 2 lines
BLAS_INCLUDE := $(shell brew --prefix openblas)/include
BLAS_LIB := $(shell brew --prefix openblas)/lib |
@navy-xie That is neat and works. Thank you. |
I get 3% of the way into building after cmake fires off correctly from a build directory using
$ cmake ..
. Using make manually from Caffe just results in there being the same error:I've looked around and most of the results I've found talk about using CUDA and that's clearly not an option. I have tried reinstalling all of my dependencies via homebrew, I've tried using standard make passing in compile params like
$ make all -L /usr/local/Cellar/openblas/0.2.15/lib -I /usr/local/Cellar/openblas/0.2.15/include
and followed this suggestion:I haven't seen anyone else having these same issues but I'm assuming I'm just doing something stupid and failing to actually link correctly somewhere.
Help?
The text was updated successfully, but these errors were encountered: