RuntimeError cuDNN error CUDNN_STATUS_EXECUTION_FAILED Solution
| |
When you encountered the above issue and Google it, you will find lots of discussions. Unfortunately, very rare of them are useful and work.
Actually, the root cause is pytorch/cuda/python compatibility issue.
Solution
The solution is straightforward. Simply downgrade pytorch and install a different version of cuda or python would be fine.
My environment:
- Ubuntu 18.04 LTS
- Python 3.6.9
- PyTorch 1.3.0
- cuda 10.1
This command resolved my issue (PyTorch version really matters! from 1.3.0 to 1.2.0):
| |
If you use conda, you can refer to this page to find a working combination (downgrade might be better than upgrade…): INSTALLING PREVIOUS VERSIONS OF PYTORCH
Detailed Error Message
| |
DO NOT Upgrade Ubuntu
Someone said newer Ubuntu fixed some low-level libraries. I upgraded Ubuntu from 14.04 to 16.04 and then to 18.04, nothing happened.