PaddlePaddle/Anakin

Anakin docker build error on ubuntu 16.04 for Nvidia-GPU

kezunlin opened this issue · 2 comments

I followed the anakin docker guide guide.

and issue the command

sudo ./anakin_docker_build_and_run.sh -p NVIDIA-GPU -o Ubuntu -m Build

error occur:

-- cudnn include header is CUDNN_INCLUDE_DIR-NOTFOUND/cudnn.h
-- cudnn library is /usr/lib/x86_64-linux-gnu/libcudnn.so/libcudnn.so
CMake Error at cmake/cuda.cmake:126 (message):
  Could not find cudnn library in:
Call Stack (most recent call first):
  cmake/gather.cmake:16 (anakin_find_cudnn)
  CMakeLists.txt:178 (include)


-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Building fat-bin for cuda code !
--  `--support arch :  3.5
--  `--support arch :  5.0
--  `--support arch :  6.0
--  `--support arch :  6.1
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PROTOBUF: /usr/local/lib/libprotobuf.so  
-- Found protobuf in /usr/local/include
-- 
-- ================================ configuration ==================================
-- General:
--   anakin version            : 0.1.2
--   System                    : Linux
--   C++ compiler              : /usr/bin/c++
--   C flags                   : 
--   CXX flags                 :  -std=c++11 -fPIC -ldl -lrt -W  -pthread    -Wno-unused-variable      -fpermissive  -fdiagnostics-show-option -Wno-undef -Wno-narrowing -Wno-unknown-pragmas -Wno-delete-non-virtual-dtor -Wno-comment -Wno-sign-compare -Wno-ignored-qualifiers -Wno-enum-compare -O3 -DNDEBUG
--   Build type                : Release;FORCE
--   Build cross plantform     : ON
--   Build anakin fp32         : ON
-- 
--   Build shared libs         : YES
--   Build with unit test      : YES
-- 
--   Enable verbose message    : NO
--   Enable noisy warnings     : NO
--   Disable all warnings      : YES
-- 
--   Use local logger          : logger
--   Use google protobuf       : ON
--   Use local Unit test       : aktest
--   USE_OPENCV                : OFF
--   USE_BOOST                 : OFF
--   USE_OPENMP                : 
-- 
-- Cuda:
--   USE_CUDA                  : ON
--     |--CUDA version         : 8.0
--     `--NVCC flags           :   -Xcompiler -fPIC -O3 -std=c++11 --default-stream per-thread -Wno-deprecated-gpu-targets  --generate-code arch=compute_35,code=sm_35  --generate-code arch=compute_50,code=sm_50  --generate-code arch=compute_60,code=sm_60  --generate-code arch=compute_61,code=sm_61 
--   USE_CUBLAS                : ON
--   USE_CURAND                : ON
--   USE_CUFFT                 : ON
--   USE_CUDNN                 : ON
--     `--Cudnn version        : 
-- 
--   USE_OPENCL                : OFF
-- 
--   SELECT_GPU_PLACE          : YES
-- 
--   Configuation path         : /Anakin/gpu_build_sm61/anakin_config.h
-- ================================ End ==================================
-- Configuring incomplete, errors occurred!
See also "/Anakin/gpu_build_sm61/CMakeFiles/CMakeOutput.log".
See also "/Anakin/gpu_build_sm61/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
sha256:694bca37cbee627f47bfc46e71af099147bb61045fddf6ec3abd1beeab69d00d

I have compiled successfully with CUDA 9.0 + cudnn 7.1.4.

docs/Manual/INSTALL_en.md answer this:

$ export CUDNN_ROOT=/usr/local/cudnn_v7 # the path where your cuDNN installed.