unable to configure caffe with openblas v0.2.14!

1,402 views
Skip to first unread message

Puneet Singh

unread,
Oct 15, 2015, 3:14:06 AM10/15/15
to Caffe Users
I am trying to install caffee on my centos6.5 OS, and i am getting error regarding atlas not found :
 
Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_BLAS_LIBRARY
  Atlas_LAPACK_LIBRARY)
Call Stack (most recent call first):
  /opt/onama/Onama_Installed/Application_Dependencies/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindAtlas.cmake:43 (find_package_handle_standard_args)
  cmake/Dependencies.cmake:85 (find_package)
  CMakeLists.txt:31 (include)

and i cannot build atlas on my machine as i cannot disable cpu throttling & atlas requires disabled cpu throttling!
i browsed website & i came to know that atlas ,mkl & open blas are other alternatives!
I installed blas at custom location(non standard directory) and i make following setting in Makefile.config :

#open for openblas

BLAS := open

 , even then the cmake ask for atlas installation instead of openblas!  but i guess BLAS:=open is not picked up by cmake (make method maybe!)

my cmake command is:

PATH=/home/puneet/Downloads/caffe/caffedeps/lib:$PATH C_INCLUDE_PATH=/home/puneet/Downloads/caffe/caffedeps/include/:$C_INCLUDE_PATH LIBRARY_PATH=/home/puneet/Downloads/caffe/caffedeps/lib:$LIBRARY_PATH LD_LIBRARY_PATH=/home/puneet/Downloads/caffe/caffedeps/lib:$LD_LIBRARY_PATH LDFLAGS="-L/home/puneet/Downloads/caffe/caffedeps/lib" CPPFLAGS="-I/home/puneet/Downloads/caffe/caffedeps/include " cmake  -DCMAKE_INSTALL_PREFIX:PATH=/home/puneet/Downloads/caffe/caffedeps -DPNG_INCLUDE_DIR=/home/puneet/Downloads/caffe/caffedeps/include -DPNG_LIBRARY=/home/puneet/Downloads/caffe/caffedeps/lib  -DZLIB_LIBRARY=/home/puneet/Downloads/caffe/caffedeps/lib -DZLIB_INCLUDE_DIR=/home/puneet/Downloads/caffe/caffedeps/include -DJPEG_LIBRARY=/home/puneet/Downloads/caffe/caffedeps/lib -DJPEG_INCLUDE_DIR=/home/puneet/Downloads/caffe/caffedeps/include -DLevelDB_INCLUDE=/home/puneet/Downloads/caffe/caffedeps/include/ -DCMAKE_EXE_LINKER_FLAGS=" /home/puneet/Downloads/caffe/caffedeps/lib/libjpeg.a /home/puneet/Downloads/caffe/caffedeps/lib/libpng.a /home/puneet/Downloads/caffe/caffedeps/lib/libz.a "   -DCMAKE_EXE_LINKER_FLAGS="/home/puneet/Downloads/caffe/caffedeps/lib/libjpeg.a /home/puneet/Downloads/caffe/caffedeps/lib/libpng.a /home/puneet/Downloads/caffe/caffedeps/lib/libz.a" -DOpenCV_DIR=/home/puneet/Downloads/caffe/caffedeps/lib  -DBLAS_INCLUDE=/home/puneet/Downloads/caffe/caffedeps/include -DBLAS_LIB=/home/puneet/Downloads/caffe/caffedeps/lib/    ..

-- Found LMDB: /home/puneet/Downloads/caffe/caffedeps/include 
-- Found lmdb    (include: /home/puneet/Downloads/caffe/caffedeps/include, library: /home/puneet/Downloads/caffe/caffedeps/lib/liblmdb.so)
-- Found LevelDB: /home/puneet/Downloads/caffe/caffedeps/include 
-- Found LevelDB (include: /home/puneet/Downloads/caffe/caffedeps/include, library: /home/puneet/Downloads/caffe/caffedeps/lib/libleveldb.so)
-- Found Snappy: /home/puneet/Downloads/caffe/caffedeps/include 
-- Found Snappy  (include: /home/puneet/Downloads/caffe/caffedeps/include, library: /home/puneet/Downloads/caffe/caffedeps/lib/libsnappy.so)
-- CUDA detected: 7.0
-- Added CUDA NVCC flags for: sm_35
-- OpenCV found (/home/puneet/Downloads/caffe/caffedeps/opencv/cmake)
CMake Error at /opt/onama/Onama_Installed/Application_Dependencies/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_BLAS_LIBRARY
  Atlas_LAPACK_LIBRARY)
Call Stack (most recent call first):
  /opt/onama/Onama_Installed/Application_Dependencies/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindAtlas.cmake:43 (find_package_handle_standard_args)
  cmake/Dependencies.cmake:85 (find_package)
  CMakeLists.txt:31 (include)

-- Configuring incomplete, errors occurred!

What setting / flags to i need to provide to cmake so that OpenBlas is used instead of atlas!

Eagerly awaiting your replies
Regards ,
Puneet

Eugen Funk

unread,
Jan 26, 2016, 9:34:36 AM1/26/16
to Caffe Users
Same issue here. Have you been able to solve this?

Huseyin Yuce

unread,
Feb 21, 2016, 3:51:23 PM2/21/16
to Caffe Users
me too. I couldn't find that where is.


15 Ekim 2015 Perşembe 10:14:06 UTC+3 tarihinde Puneet Singh yazdı:

Jan C Peters

unread,
Feb 22, 2016, 5:43:59 AM2/22/16
to Caffe Users
Yes, there are two different and _unrelated_ building methods, one that uses the Makefile.config and just the "make" command, and the other cmake based method. For cmake you will have to set the parameters in the cache, which is conveniently possible with cmake-gui for instance.

So you are exactly right, you need to tell cmake that you want to use OpenBLAS instead of Atlas. And you do that by setting the BLAS variable to Open. Do that in the GUI, or in short on the commandline with -DBLAS=Open.

Jan

Lin Lingfeng

unread,
Mar 21, 2016, 4:15:52 AM3/21/16
to Caffe Users
Ok, I meet the same problem with you .
But I donot find follows in your cmake .. compile:

...
 Found Threads: TRUE 
-- Found GFlags: /usr/include 
-- Found gflags  (include: /usr/include, library: /usr/lib64/libgflags.so)
-- Found Glog: /usr/local/include 
-- Found glog    (include: /usr/local/include, library: /usr/local/lib/libglog.so)
-- Found PROTOBUF: /usr/lib64/libprotobuf.so 
-- Found PROTOBUF Compiler: /usr/bin/protoc
...

Maybe you forget Install some Caffe Dependencies. See http://caffe.berkeleyvision.org/install_yum.html

regards
Reply all
Reply to author
Forward
0 new messages