failed to install chainer with cuda 8.0 / cuDNN v6
See original GitHub issueHi,
I installed CUDA Toolkit 8.0 and cuDNN v6. I then tried to install chainer, but it failed with errors as below:
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setFilterNdDescriptor_v3(size_t, int, int, size_t, int)’:
cupy/cuda/cudnn.cpp:4203:177: error: ‘cudnnSetFilterNdDescriptor_v3’ was not declared in this scope
__pyx_v_status = cudnnSetFilterNdDescriptor_v3(((cudnnFilterDescriptor_t)__pyx_v_filterDesc), ((cudnnDataType_t)__pyx_v_dataType), __pyx_v_nbDims, ((int *)__pyx_v_filterDimA));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setFilter4dDescriptor_v4(size_t, int, int, int, int, int, int, int)’:
cupy/cuda/cudnn.cpp:4359:215: error: ‘cudnnSetFilter4dDescriptor_v4’ was not declared in this scope
__pyx_v_status = cudnnSetFilter4dDescriptor_v4(((cudnnFilterDescriptor_t)__pyx_v_filterDesc), ((cudnnDataType_t)__pyx_v_dataType), ((cudnnTensorFormat_t)__pyx_v_format), __pyx_v_k, __pyx_v_c, __pyx_v_h, __pyx_v_w);
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setFilterNdDescriptor_v4(size_t, int, int, int, size_t, int)’:
cupy/cuda/cudnn.cpp:4542:216: error: ‘cudnnSetFilterNdDescriptor_v4’ was not declared in this scope
__pyx_v_status = cudnnSetFilterNdDescriptor_v4(((cudnnFilterDescriptor_t)__pyx_v_filterDesc), ((cudnnDataType_t)__pyx_v_dataType), ((cudnnTensorFormat_t)__pyx_v_format), __pyx_v_nbDims, ((int *)__pyx_v_filterDimA));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_getFilterNdDescriptor(size_t, int, int)’:
cupy/cuda/cudnn.cpp:4729:202: error: ‘cudnnGetFilterNdDescriptor_v4’ was not declared in this scope
__pyx_v_status = cudnnGetFilterNdDescriptor_v4(((cudnnFilterDescriptor_t)__pyx_v_wDesc), __pyx_v_nbDimsRequested, (&__pyx_v_dataType), (&__pyx_v_format), (&__pyx_v_nbDims), (&(__pyx_v_filterDimA[0])));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setConvolution2dDescriptor_v4(size_t, int, int, int, int, int, int, int, int)’:
cupy/cuda/cudnn.cpp:5112:231: error: too few arguments to function ‘cudnnStatus_t cudnnSetConvolution2dDescriptor(cudnnConvolutionDescriptor_t, int, int, int, int, int, int, cudnnConvolutionMode_t, cudnnDataType_t)’
__pyx_v_status = cudnnSetConvolution2dDescriptor_v4(((cudnnConvolutionDescriptor_t)__pyx_v_convDesc), __pyx_v_pad_h, __pyx_v_pad_w, __pyx_v_u, __pyx_v_v, __pyx_v_upscalex, __pyx_v_upscaley, ((cudnnConvolutionMode_t)__pyx_v_mode));
^
In file included from cupy/cuda/cupy_cudnn.h:10:0,
from cupy/cuda/cudnn.cpp:481:
/usr/local/cuda/include/cudnn.h:500:27: note: declared here
cudnnStatus_t CUDNNWINAPI cudnnSetConvolution2dDescriptor( cudnnConvolutionDescriptor_t convDesc,
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setPooling2dDescriptor_v3(size_t, int, int, int, int, int, int, int, int)’:
cupy/cuda/cudnn.cpp:10226:279: error: ‘cudnnSetPooling2dDescriptor_v3’ was not declared in this scope
__pyx_v_status = cudnnSetPooling2dDescriptor_v3(((cudnnPoolingDescriptor_t)__pyx_v_poolingDesc), ((cudnnPoolingMode_t)__pyx_v_mode), __pyx_v_windowHeight, __pyx_v_windowWidth, __pyx_v_verticalPadding, __pyx_v_horizontalPadding, __pyx_v_verticalStride, __pyx_v_horizontalStride);
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setPooling2dDescriptor_v4(size_t, int, int, int, int, int, int, int, int, int)’:
cupy/cuda/cudnn.cpp:10418:330: error: ‘cudnnSetPooling2dDescriptor_v4’ was not declared in this scope
__pyx_v_status = cudnnSetPooling2dDescriptor_v4(((cudnnPoolingDescriptor_t)__pyx_v_poolingDesc), ((cudnnPoolingMode_t)__pyx_v_mode), ((cudnnNanPropagation_t)__pyx_v_maxpoolingNanOpt), __pyx_v_windowHeight, __pyx_v_windowWidth, __pyx_v_verticalPadding, __pyx_v_horizontalPadding, __pyx_v_verticalStride, __pyx_v_horizontalStride);
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setPoolingNdDescriptor_v3(size_t, int, int, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:10619:232: error: ‘cudnnSetPoolingNdDescriptor_v3’ was not declared in this scope
__pyx_v_status = cudnnSetPoolingNdDescriptor_v3(((cudnnPoolingDescriptor_t)__pyx_v_poolingDesc), ((cudnnPoolingMode_t)__pyx_v_mode), __pyx_v_nbDims, ((int *)__pyx_v_windowDimA), ((int *)__pyx_v_paddingA), ((int *)__pyx_v_strideA));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_setPoolingNdDescriptor_v4(size_t, int, int, int, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:10793:283: error: ‘cudnnSetPoolingNdDescriptor_v4’ was not declared in this scope
__pyx_v_status = cudnnSetPoolingNdDescriptor_v4(((cudnnPoolingDescriptor_t)__pyx_v_poolingDesc), ((cudnnPoolingMode_t)__pyx_v_mode), ((cudnnNanPropagation_t)__pyx_v_maxpoolingNanOpt), __pyx_v_nbDims, ((int *)__pyx_v_windowDimA), ((int *)__pyx_v_paddingA), ((int *)__pyx_v_strideA));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_activationForward_v3(size_t, int, size_t, size_t, size_t, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:13483:313: error: ‘cudnnActivationForward_v3’ was not declared in this scope
__pyx_v_status = cudnnActivationForward_v3(((cudnnHandle_t)__pyx_v_handle), ((cudnnActivationMode_t)__pyx_v_mode), ((void *)__pyx_v_alpha), ((cudnnTensorDescriptor_t)__pyx_v_srcDesc), ((void *)__pyx_v_srcData), ((void *)__pyx_v_beta), ((cudnnTensorDescriptor_t)__pyx_v_dstDesc), ((void *)__pyx_v_dstData));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_activationForward_v4(size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:13708:329: error: ‘cudnnActivationForward_v4’ was not declared in this scope
__pyx_v_status = cudnnActivationForward_v4(((cudnnHandle_t)__pyx_v_handle), ((cudnnActivationDescriptor_t)__pyx_v_activationDesc), ((void *)__pyx_v_alpha), ((cudnnTensorDescriptor_t)__pyx_v_srcDesc), ((void *)__pyx_v_srcData), ((void *)__pyx_v_beta), ((cudnnTensorDescriptor_t)__pyx_v_dstDesc), ((void *)__pyx_v_dstData));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_activationBackward_v3(size_t, int, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:13933:476: error: ‘cudnnActivationBackward_v3’ was not declared in this scope
__pyx_v_status = cudnnActivationBackward_v3(((cudnnHandle_t)__pyx_v_handle), ((cudnnActivationMode_t)__pyx_v_mode), ((void *)__pyx_v_alpha), ((cudnnTensorDescriptor_t)__pyx_v_srcDesc), ((void *)__pyx_v_srcData), ((cudnnTensorDescriptor_t)__pyx_v_srcDiffDesc), ((void *)__pyx_v_srcDiffData), ((cudnnTensorDescriptor_t)__pyx_v_destDesc), ((void *)__pyx_v_destData), ((void *)__pyx_v_beta), ((cudnnTensorDescriptor_t)__pyx_v_destDiffDesc), ((void *)__pyx_v_destDiffData));
^
cupy/cuda/cudnn.cpp: In function ‘PyObject* __pyx_f_4cupy_4cuda_5cudnn_activationBackward_v4(size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t, int)’:
cupy/cuda/cudnn.cpp:14194:492: error: ‘cudnnActivationBackward_v4’ was not declared in this scope
__pyx_v_status = cudnnActivationBackward_v4(((cudnnHandle_t)__pyx_v_handle), ((cudnnActivationDescriptor_t)__pyx_v_activationDesc), ((void *)__pyx_v_alpha), ((cudnnTensorDescriptor_t)__pyx_v_srcDesc), ((void *)__pyx_v_srcData), ((cudnnTensorDescriptor_t)__pyx_v_srcDiffDesc), ((void *)__pyx_v_srcDiffData), ((cudnnTensorDescriptor_t)__pyx_v_destDesc), ((void *)__pyx_v_destData), ((void *)__pyx_v_beta), ((cudnnTensorDescriptor_t)__pyx_v_destDiffDesc), ((void *)__pyx_v_destDiffData));
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
error
Cleaning up...
Removing source in /tmp/pip-build-pXxzLQ/chainer
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-pXxzLQ/chainer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-U6dnBU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-pXxzLQ/chainer/
What should I do next? Thank you very much in advance!
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Installation — Chainer 7.8.1 documentation
You failed to build CuPy with cuDNN. If you don't need cuDNN, ignore this message. Otherwise, retry to install CuPy with cuDNN. pip...
Read more >Install Chainer/PyTorch with GPU Support - Read the Docs
cupy-cuda91 == 6.7.0 (chainer v6.7.0 requires cupy/cudnn for hardware ... ```bash sudo apt install nvidia-cuda-toolkit sudo apt install nvidia-cuda-dev.
Read more >CUDA Deep Neural Network (cuDNN) - NVIDIA Developer
cuDNN accelerates widely used deep learning frameworks, including Caffe2, Chainer, Keras, MATLAB, MxNet, PaddlePaddle, PyTorch, and TensorFlow. For access to ...
Read more >Installation Guide — CuPy 6.7.0 documentation
Warning message “cuDNN is not enabled” appears when using Chainer · pip fails to install CuPy · Installing cuDNN and NCCL · Working...
Read more >Colab with CUDA 8.0 returns GPU not found error
The problem is that I have to use Tensorflow-GPU 1.4, which requires CUDA 8.0 and cudnn v6. I'm installing the right version of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
cudnn v6 is supported in the master branch and will be availabel in the next version v1.23.0. See #2478. If you want to use v1.22.0 that is the latest stable version in pipy, use cudnn v5.1.
Can not found libcudnn.so.5 I have set my LD_LIBRARY_PATH and ldconfig of libcudnn.so path