[Linuxppc-users] Caffe compilation failed

Jason Furmanek furmanek at linux.vnet.ibm.com
Wed Aug 2 01:28:50 AEST 2017


Generally, Nvidia code only supports the kernel/GCC/GLIBC levels of a 
particular distro.

See:

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements


Sometimes newer kernels work, but a lot of their Cuda code gives compile 
time errors like this on newer toolchains. Basic reasoning as far as I 
can tell is their code is closed so they have to do all of the work 
themselves, which means they pick certain levels to support in order to 
contain it.


On 08/01/2017 09:37 AM, Frederic DUMOULIN wrote:
> 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/



More information about the Linuxppc-users mailing list