No module named 'cupy.cudnn'
See original GitHub issueHi all, please help.
I installed CUDA 9.0, cuDNN 7, Chainer 3.2.0, CuPy 2.2.0, Python 3.6 on Ubuntu 16.04 LTS
but when i check print(chainer.cuda._resolution_error)
in python, i got this message:
No module named 'cupy.cudnn'
I also check may installed CuDNN, here the result
$ ls /usr/include/cudnn.h
/usr/include/cudnn.h
$ ls /usr/lib/x86_64-linux-gnu/libcudnn*
/usr/lib/x86_64-linux-gnu/libcudnn.so
/usr/lib/x86_64-linux-gnu/libcudnn.so.5
/usr/lib/x86_64-linux-gnu/libcudnn.so.5.1.10
/usr/lib/x86_64-linux-gnu/libcudnn.so.7
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_static.a
/usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a
I also reinstall CuDNN with this in command line
$ sudo dpkg -i libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
[sudo] password for rezha:
(Reading database ... 357409 files and directories currently installed.)
Preparing to unpack libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb ...
Unpacking libcudnn7 (7.0.5.15-1+cuda9.0) over (7.0.5.15-1+cuda9.0) ...
Setting up libcudnn7 (7.0.5.15-1+cuda9.0) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
but when i check chainer in python, i got this result:
>>> import chainer
>>> chainer.cuda.available
True
>>> chainer.cuda.cudnn_enabled
False
What should i do?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Chainer: No module named 'cupy.util'` - Stack Overflow
The error message is very clear. Just change L69 of backends/cuda.py : from cupy.util import PerformanceWarning as _PerformanceWarning.
Read more >Installation — CuPy 11.4.0 documentation
Installing CuPy from PyPI#. Wheels (precompiled binary packages) are available for Linux and Windows. Package names are different depending on your CUDA Toolkit ......
Read more >cupy-cuda111 - PyPI
CuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with Python. This is a CuPy wheel (precompiled binary) package for CUDA 11.1.
Read more >CuPy Documentation - Read the Docs
Note: If you did not install CUDA Toolkit by yourself, ... For this purpose, CuPy implements two sister methods called cupy.asnumpy() and.
Read more >No module named 'cupy', cupy 安装出错_wangqianlan的博客
没有安装cupy modle注意:安装cupy时要根据自己的cuda版本选择cupy例如我电脑上是cuda11.3就输入pip install cupy-cuda113如果不知道自己装的cuda版本 ...
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
If you install cupy-cuda** as @kmaehashi suggested, make sure unintall cupy because of name conflict. Or, if you reinstall cupy, make sure
pip install cupy --no-cache-dir
(don’t miss –no-cache-dir).@kmaehashi i did
pip install cupy-cuda90
, andpip uninstall cupy
when i check chainer in python, i got this result:
But this version of cupy-pycoda90 not compatible with installed Chainer 3.2.0, i got this error message when i train my neural net model:
module 'cupy.cuda.cudnn' has no attribute 'getConvolutionForwardAlgorithm'