unable to configure caffe with openblas v0.2.14!

瀏覽次數:1,376 次
跳到第一則未讀訊息

Puneet Singh

未讀,
2015年10月15日 凌晨3:14:062015/10/15
收件者: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

未讀,
2016年1月26日 上午9:34:362016/1/26
收件者:Caffe Users
Same issue here. Have you been able to solve this?

Huseyin Yuce

未讀,
2016年2月21日 下午3:51:232016/2/21
收件者: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

未讀,
2016年2月22日 清晨5:43:592016/2/22
收件者: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

未讀,
2016年3月21日 凌晨4:15:522016/3/21
收件者: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
回覆所有人
回覆作者
轉寄
0 則新訊息