Caffe: Compilation of Caffe with OpenBLAS throwing error when putting BLAS := open. But same works when we put BLAS: Open. "Open" with Capital O

Created on 4 Sep 2015  ·  10Comments  ·  Source: BVLC/caffe

Hi Team,

I am getting below error when I try to compile with BLAS: open. Small o. But the same works when I put BLAS: Open. Capital O. Can you please update the MakeFile.config.example comment with the Capital O for OpenBLAS compile? The comment in MakeFile.config.example says to put "open" with Small o.

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find Atlas (missing: Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY
Atlas_LAPACK_LIBRARY)

Regards,
Gurunath

Most helpful comment

I was wrong. small o open is correct.

cmake -DBLAS=open ..

All 10 comments

I was wrong. small o open is correct.

cmake -DBLAS=open ..

Using this flag seems to solve the problem of not finding atlas-related libraries as well.

in the dir caffe
mkdir build
cd build
cmake -DBLAS=open ..
...
-- Configuring incomplete

do you have openBlas installed? what is the error message

yes i installed openblas and atlas....at /usr/local/OpenBLAS /usr/local/atlas

ldconfig -p | grep atlas
ldconfig -p | grep open
you can see it ....

Please mention the error message you recieved for configuration incomplete.

I resolved the issue by:
ldconfig -p | grep libopenblas
libopenblas.so.0 (libc6,x86-64) => /lib64/libopenblas.so.0

sudo ln -s /lib64/libopenblas.so.0 /usr/lib64/libopenblas.so
sudo cmake -DBLAS=open ..

Can someone explain me how / why this works? What does the open statement do exactly?

Its to choose OpenBLAS as the BLAS library. More details on the caffe installation page under section "CUDA and BLAS":

Caffe Installation

Was this page helpful?
0 / 5 - 0 ratings