RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS

postero20: <p>My environment is</p>
<ul>
<li>ubuntu 16.04</li>
<li>python 3.5</li>
<li>RTX 2080 ti</li>
<li>cuda-9.0</li>
<li>cudnn 7</li>
</ul>
<p>When I tried to train the model, there was RuntimeError (RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS).</p>
<p>First of all, I totally could not understand what above error means.<br>
Furthermore the same code what I tried to train worked well on gtx 1080 ti (the rest environments are totally same as above)</p>
<p>What is the problem?</p>

Zohaib_Ahmed: <p>I have the same issue, same GPU as you. Did you find a workaround?</p>

postero20: <p>No… I just know about the issue is occurred when I use RNN base model.<br>
For example,<br>
from torchvision import models<br>
vgg = models.vgg19(pretrained = True)<br>
vgg.cuda()<br>
These lines are not problem. They work clearly.</p>
<p>However,<br>
from torch import nn<br>
gru = nn.gru(3, 3, 2)<br>
gru.cuda()<br>
Above code  make issue and the problem is in …/torch/nn/modules/rnn.py file</p>
<p>Maybe, this issue is not cause from our environment and/or settings.</p>

settonull: <p>On windows with RTX 2080 (not TI) I’m seeing the same thing with an RNN</p>

postero20: <p>When you update your CUDA to cuda-9.2 and update pytorch for cuda-9.2, the issue will be disappeared <img src="https://discuss.pytorch.org/images/emoji/apple/smiley.png?v=6" title=":smiley:" class="emoji" alt=":smiley:"></p>

RainyFish: <p>I have the same problem with you. However , I used Cuda-10.0 . How do you solve this problem. Can  you tell me please?</p>

Xin_He: <p>I also have this issues.  same GPU as you guys.</p>

Zohaib_Ahmed: <p><a class="mention" href="/u/postero20">@postero20</a> - that didn’t seem to do the trick for me. What version of cudnn do you have?</p>

misonomayu: <p>Same problem here with 2080 and CUDA 9.1</p>

RainyFish: <p>this problem can be solved by install cuda92, conda install cuda92 pytorch torchvision</p>

RainyFish: <p>do you install cuda by conda?  conda install cuda by cuda9.0, so you need to update the cuda by conda install cuda92</p>

Zohaib_Ahmed: <p><a class="mention" href="/u/rainyfish">@RainyFish</a> - couldn’t get it to work even with installing cuda92 with conda.</p>

RainyFish: <p>you should check the version of pytorch if it is suitable for cuda.</p>

postero20: <p><a class="mention" href="/u/zohaib_ahmed">@Zohaib_Ahmed</a>  I’m using pytorch 0.4.1, CUDA 9.2, and CUDNN 7104</p>

postero20: <p><a class="mention" href="/u/rainyfish">@RainyFish</a> No, I did install cuda using run file (<a href="https://developer.nvidia.com/cuda-92-download-archive?target_os=Linux" rel="nofollow noopener">https://developer.nvidia.com/cuda-92-download-archive?target_os=Linux</a>)</p>

fliosyan: <p>I got the same issue, and my gpu is RTX 2080.<br>
I didn’t figure it out, but I found a way to run my code.<br>
The method is that running my code in Atom with the Hydrogen add-on. This error occur when I run the code at the first time, but it disappeared when I run it at the second time.<br>
And I found that if I run my code just after restart my PC, there will be no such error.</p>
<p>So I guess that the reason of this error is that there is some other program using the GPU when I try to run my code.</p>

Lichen_Pan: <p>RTX 2080ti, cuda 10.0, CNN, same problem.</p>

paperback: <p>I had the same error message but realised my pytorch install didn’t have CUDA installed with it so you can try the conda instructions from above (believe for win10 it’s just conda install pytorch cuda92 -c pytorch)</p>
<p>But I had CUDNN already downloaded so just follow the instructions here (<a href="https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html" rel="nofollow noopener">https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html</a>). All I needed to do was dump the CUDNN files here C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\</p>

fliosyan: <p>Thanks!!!</p>
<p>I installed the pytorch with cuda 9.0 before. I just update pytorch with cuda92 ( for win10 it’s just conda install pytorch cuda92 -c pytorch) and then the errer disappear.</p>

BabyHS: <p>I have the same problem  with RTX 2080,  CUDA 10 and pytorch 0.4.1.</p>