[Linuxppc-users] Caffe compilation failed

Frederic DUMOULIN frederic.dumoulin at mipsology.com
Wed Aug 2 19:12:08 AEST 2017


Hi,

I've got it.
I tried to install caffe individally, it also failed but with a more 
explicit message, the dependency is not on libcudnn5 but on libcudnn5-dev.
After downloading the package from nvidia I was able to install the full 
mldl package.

Thanks a lot for your help.

Fred


On 01/08/2017 18:11, Sridhar Satyanarayan wrote:
>
> Try with this repositories, looks like your OS is not able to pull 
> pre-requisite packages
>
>
> sudo vi /etc/apt/sources.list
>
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial main restricted
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial-updates main restricted
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial universe
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial-updates universe
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial multiverse
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial-updates multiverse
> deb http://us.ports.ubuntu.com/ubuntu-ports/xenial-backports main 
> restricted universe multiverse
> deb http://ports.ubuntu.com/ubuntu-portsxenial-security main restricted
> deb http://ports.ubuntu.com/ubuntu-portsxenial-security universe
> deb http://ports.ubuntu.com/ubuntu-portsxenial-security multiverse
>
> sudo apt-get update
> sudo apt-get install power-mldl
>
>
> Thanks & Regards
>
> Sridhar Satyanarayan
> Certified Expert IT Consultant
> Lab Services Power Systems Delivery Practice
> IBM Systems & Technology Group
> Phone:  +1-720-342-5346
> Mobile: +1-720-340-0173
> e-mail: sridhars at us.ibm.com
>
>
> Inactive hide details for Frederic DUMOULIN ---08/01/2017 09:58:13 
> AM---The pre compiled versions will be fine for the moment, Frederic 
> DUMOULIN ---08/01/2017 09:58:13 AM---The pre compiled versions will be 
> fine for the moment, thanks. I tried the mldl-repo-local_3.4.2_ppc
>
> From: Frederic DUMOULIN <frederic.dumoulin at mipsology.com>
> To: Sridhar Satyanarayan <sridhars at us.ibm.com>
> Cc: linuxppc-users at lists.ozlabs.org
> Date: 08/01/2017 09:58 AM
> Subject: Re: [Linuxppc-users] Caffe compilation failed
>
> ------------------------------------------------------------------------
>
>
>
> The pre compiled versions will be fine for the moment, thanks.
>
> I tried the mldl-repo-local_3.4.2_ppc64el.deb installation.
> I've got an error on the last step:
>
> $ sudo apt-get install power-mldl
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
>  power-mldl : Depends: caffe-bvlc (>= 1.0.0rc5-3ibm1) but it is not 
> going to be installed
>               Depends: caffe-ibm (>= 1.0.0rc3-3ibm4) but it is not 
> going to be installed
>               Depends: caffe-nv (= 0.14.5-3ibm1) but it is not going 
> to be installed or
>                        caffe-nv (>= 0.15.14-3ibm1) but it is not going 
> to be installed
>               Depends: digits (>= 5.0-3ibm4) but it is not going to be 
> installed
> E: Unable to correct problems, you have held broken packages.
>
>
> Fred
>
>
> On 01/08/2017 16:42, Sridhar Satyanarayan wrote:
>
>         IBM has pre complied version of Berkeley, IBM and NVIDIA
>         Caffe, in case you want to use it,
>         _
>         __https://public.dhe.ibm.com/software/server/POWER/Linux/mldl/ubuntu/README.html_
>
>
>
>         Thanks & Regards
>
>         Sridhar Satyanarayan
>         Certified Expert IT Consultant
>         Lab Services Power Systems Delivery Practice
>         IBM Systems & Technology Group
>         Phone:  +1-720-342-5346
>         Mobile:  +1-720-340-0173
>         e-mail: _sridhars at us.ibm.com_ <mailto:sridhars at us.ibm.com>
>
>
>         Inactive hide details for Frederic DUMOULIN ---08/01/2017
>         08:39:03 AM---Hi, I'm trying to compil Caffe software
>         following this Frederic DUMOULIN ---08/01/2017 08:39:03
>         AM---Hi, I'm trying to compil Caffe software following this steps
>
>         From: Frederic DUMOULIN _<frederic.dumoulin at mipsology.com>_
>         <mailto:frederic.dumoulin at mipsology.com>
>         To: _linuxppc-users at lists.ozlabs.org_
>         <mailto:linuxppc-users at lists.ozlabs.org>
>         Date: 08/01/2017 08:39 AM
>         Subject: [Linuxppc-users] Caffe compilation failed
>         Sent by: "Linuxppc-users"
>         _<linuxppc-users-bounces+sridhars=us.ibm.com at lists.ozlabs.org>_ <mailto:linuxppc-users-bounces+sridhars=us.ibm.com at lists.ozlabs.org>
>
>         ------------------------------------------------------------------------
>
>
>
>         Hi,
>
>         I'm trying to compil Caffe software following this steps _
>         __http://caffe.berkeleyvision.org/installation.html#compilation_.
>         I need the CPU_ONLY flag to be OFF and USE_CUDNN to ON. In
>         this mode
>         cuda files are compiled.
>
>         It seems that the cuda files can not be compiled with
>         /opt/at10.0/bin/gcc since the version is 6.3.1 whereas cuda
>         headers
>         doen't support gcc > 5:
>         [  1%] Building NVCC (Device) object
>         src/caffe/CMakeFiles/cuda_compile.dir/solvers/cuda_compile_generated_adagrad_solver.cu.o
>         nvcc warning : The 'compute_20', 'sm_20', and 'sm_21'
>         architectures are
>         deprecated, and may be removed in a future release (Use
>         -Wno-deprecated-gpu-targets to suppress warning).
>         In file included from /usr/local/cuda/include/cuda_runtime.h:78:0,
>                          from <command-line>:0:
>         /usr/local/cuda/include/host_config.h:119:2: error: #error --
>         unsupported GNU version! gcc versions later than 5 are not
>         supported!
>          #error -- unsupported GNU version! gcc versions later than 5
>         are not
>         supported!
>           ^~~~~
>         CMake Error at
>         cuda_compile_generated_adagrad_solver.cu.o.cmake:207
>         (message):
>
>         Here is the cmake configuration:
>         -- Boost version: 1.61.0
>         -- Found the following Boost libraries:
>         --   system
>         --   thread
>         --   filesystem
>         --   chrono
>         --   date_time
>         --   atomic
>         -- Found gflags  (include: /usr/include, library:
>         /usr/lib/powerpc64le-linux-gnu/libgflags.so)
>         -- Found glog    (include: /usr/include, library:
>         /usr/lib/powerpc64le-linux-gnu/libglog.so)
>         -- Found PROTOBUF Compiler: /usr/bin/protoc
>         -- Found lmdb    (include: /usr/include, library:
>         /usr/lib/powerpc64le-linux-gnu/liblmdb.so)
>         -- Found LevelDB (include: /usr/include, library:
>         /usr/lib/powerpc64le-linux-gnu/libleveldb.so)
>         -- Found Snappy  (include: /usr/include, library:
>         /usr/lib/powerpc64le-linux-gnu/libsnappy.so)
>         -- CUDA detected: 8.0
>         -- Found cuDNN: ver. 5.0.5 found (include:
>         /usr/local/cuda/include,
>         library: /usr/local/cuda/lib64/libcudnn.so)
>         -- Automatic GPU detection failed. Building for all known
>         architectures.
>         -- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50
>         -- OpenCV found (/usr/share/OpenCV)
>         -- Found Atlas (include: /usr/include, library:
>         /usr/lib/libatlas.so)
>         -- NumPy ver. 1.11.0 found (include:
>         /usr/lib/python2.7/dist-packages/numpy/core/include)
>         -- Boost version: 1.61.0
>         -- Found the following Boost libraries:
>         --   python
>         -- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/
>         -- 
>         -- ******************* Caffe Configuration Summary
>         *******************
>         -- General:
>         --   Version           :   1.0.0-rc3
>         --   Git               :   rc3-176-g790c2db
>         --   System            :   Linux
>         --   C++ compiler      :   /opt/at10.0/bin/c++
>         --   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall
>         -Wno-sign-compare
>         -Wno-uninitialized
>         --   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare
>         -Wno-uninitialized
>         --   Build type        :   Release
>         -- 
>         --   BUILD_SHARED_LIBS :   ON
>         --   BUILD_python      :   ON
>         --   BUILD_matlab      :   OFF
>         --   BUILD_docs        :   ON
>         --   CPU_ONLY          :   OFF
>         --   USE_OPENCV        :   ON
>         --   USE_LEVELDB       :   ON
>         --   USE_LMDB          :   ON
>         --   ALLOW_LMDB_NOLOCK :   OFF
>         -- 
>         -- Dependencies:
>         --   BLAS              :   Yes (Atlas)
>         --   Boost             :   Yes (ver. 1.61)
>         --   glog              :   Yes
>         --   gflags            :   Yes
>         --   protobuf          :   Yes (ver. 2.6.1)
>         --   lmdb              :   Yes (ver. 0.9.17)
>         --   LevelDB           :   Yes (ver. 1.18)
>         --   Snappy            :   Yes (ver. 1.1.3)
>         --   OpenCV            :   Yes (ver. 2.4.9.1)
>         --   CUDA              :   Yes (ver. 8.0)
>         -- 
>         -- NVIDIA CUDA:
>         --   Target GPU(s)     :   Auto
>         --   GPU arch(s)       :   sm_20 sm_21 sm_30 sm_35 sm_50
>         --   cuDNN             :   Yes (ver. 5.0.5)
>
>         How can it be solved ?
>
>         Thanks,
>         Fred
>
>         _______________________________________________
>         Linuxppc-users mailing list_
>         __Linuxppc-users at lists.ozlabs.org_
>         <mailto:Linuxppc-users at lists.ozlabs.org>_
>         __https://lists.ozlabs.org/listinfo/linuxppc-users_
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20170802/b8445b9a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20170802/b8445b9a/attachment-0001.gif>


More information about the Linuxppc-users mailing list