UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010)

dan_tyvan: <p>Hi Everyone,</p>
<p>I’m having trouble with this error. The error message is not quite clear to me, in one part it says NVIDIA driver, and in the other part it says CUDA driver, and each time I am not sure what they are referring to as it is too generic.</p>
<blockquote>
<p>“The NVIDIA driver on your system is too old (found version 10010)”</p>
</blockquote>
<p>How do I interpret found version 10010? Is this the GPU driver (which has version 25.21.14.2531),<br>
or is it the version of CUDA (10.2.89), or something else?</p>
<blockquote>
<p>“go to: <a href="https://pytorch.org" rel="noopener nofollow ugc">https://pytorch.org</a> to install a PyTorch version that has been co<br>
mpiled with your version of the CUDA driver.”</p>
</blockquote>
<p>Is this PyTorch version compatible with CUDA 10.2.89 or with whatever is version 10010?</p>
<p><strong>Environment Details:</strong><br>
Python</p>
<ul>
<li><code>python --version</code></li>
<li>3.9.7</li>
</ul>
<p>Pytorch</p>
<ul>
<li>
<p><code>print(torch.__version__)</code></p>
</li>
<li>
<p>1.10.1<br>
Installed with:</p>
</li>
<li>
<p>conda installpytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch</p>
</li>
</ul>
<p>CUDA - installed</p>
<ul>
<li><code>nvcc --version</code></li>
<li>nvcc: NVIDIA (R) Cuda compiler driver</li>
<li>Copyright (c) 2005-2019 NVIDIA Corporation</li>
<li>Built on Wed_Oct_23_19:32:27_Pacific_Daylight_Time_2019</li>
<li>Cuda compilation tools, release 10.2, V10.2.89</li>
</ul>
<p>GPU Card</p>
<ul>
<li>NVIDIA GeForce GTX 670MX</li>
<li>Driver Version: 25.21.14.2531</li>
<li>Driver Date: 9/04/2019</li>
</ul>
<p>OS</p>
<ul>
<li>Windows 8.1 SP 3</li>
<li>Version 6.3.9600</li>
</ul>
<p>Where the error is occurring:</p>
<pre><code class="lang-auto">Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.cuda.is_available()
C:\anaconda3\lib\site-packages\torch\cuda\__init__.py:80
: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old
(found version 10010). Please update your GPU driver by downloading and installi
ng a new version from the URL: http://www.nvidia.com/Download/index.aspx Alterna
tively, go to: https://pytorch.org to install a PyTorch version that has been co
mpiled with your version of the CUDA driver. (Triggered internally at  ..\c10\cu
da\CUDAFunctions.cpp:112.)
  return torch._C._cuda_getDeviceCount() &gt; 0
False
</code></pre>
<p>I used the table on <a href="https://pytorch.org/get-started/locally/" class="inline-onebox" rel="noopener nofollow ugc">Start Locally | PyTorch</a> to obtain the installation command as follows:</p>
<blockquote>
<p>conda installpytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch</p>
</blockquote>
<p>Thank you</p>

ptrblck: <p>Could you check the driver version via <code>nvidia-smi</code>, as 10010 would indicate <code>10.1</code> while your <code>nvcc</code> compiler is 10.2.</p>

dan_tyvan: <p>Hi <a class="mention" href="/u/ptrblck">@ptrblck</a></p>
<p>Thanks for replying to my topic!</p>
<p>I have checked this and it does indeed say 10.1. I am guessing <code>nvcc</code> and <code>nvidia-smi</code> both need to either say 10.1 or 10.2 in order for my environment to be set up correctly.</p>
<pre><code class="lang-auto">Fri Jan 14 08:30:03 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 425.31       Driver Version: 425.31       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 670MX  WDDM  | 00000000:01:00.0 N/A |                  N/A |
| N/A   36C    P8    N/A /  N/A |    314MiB /  3072MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+
</code></pre>

ptrblck: <aside class="quote no-group" data-username="dan_tyvan" data-post="3" data-topic="141547">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dan_tyvan/48/45735_2.png" class="avatar"> dan_tyvan:</div>
<blockquote>
<p>I am guessing <code>nvcc</code> and <code>nvidia-smi</code> both need to either say 10.1 or 10.2 in order for my environment to be set up correctly.</p>
</blockquote>
</aside>
<p>Not necessarily, as you could install the NVIDIA driver and the compiler separately (as is apparently the case in your setup).<br>
To solve the initial error you would have to update the driver to a newer version.</p>

dan_tyvan: <p>Thanks very much for that. It did not seem like I would have much luck updating my NVIDIA drivers as I already had the latest release for my card, so instead I have used the option to downgrade pytorch.</p>
<p>Seems the latest that I can get for Cuda 10.1 is pytorch 1.8.1, according to <a href="https://pytorch.org/get-started/previous-versions/" class="inline-onebox" rel="noopener nofollow ugc">Previous PyTorch Versions | PyTorch</a></p>
<p>So I have now run</p>
<p><code>pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html</code></p>
<p>Making progress now</p>
<pre><code class="lang-auto">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.cuda.is_available()
False
</code></pre>
<p>At least it’s not giving me the error this time!</p>

ptrblck: <p>I just saw that you are using a <code>670MX</code>, which has a compute capability of <code>3.0</code> and is not supported anymore (the lowest compute capability supported in the binaries would be <code>3.5</code>).</p>

dan_tyvan: <p>Thanks, where would I see the old supported binaries for 3.0?</p>

ptrblck: <p>I don’t know which binaries shipped with this older compute capability, so you would have to install some older releases and check if they would be working. As a starter I would probably use <code>1.0</code> and then try to bisect the releases. Alternatively, you could try to build from source, but I’m also unsure if some native kernels use methods introduced for later compute capabilities.</p>

Stacy_Maimoon: <p>Hi! I have had the exactly the same problem, with the following hard/software properties:<br>
Version: 0.10.251 64 bit <a href="http://cuda-z.sf.net/" rel="noopener nofollow ugc">http://cuda-z.sf.net/</a><br>
OS Version: Windows x86 6.2.9200<br>
Driver Version: 425.91<br>
Driver Dll Version: 10.10 (25.21.14.2591)<br>
Runtime Dll Version: 6.50</p>
<h2>
<a name="core-information-1" class="anchor" href="#core-information-1"></a>Core Information</h2>
<pre><code>Name: Quadro K2100M
Compute Capability: 3.0
Clock Rate: 666.5 MHz
PCI Location: 0:1:0
Multiprocessors: 3 (576 Cores)
Threads Per Multiproc.: 2048
Warp Size: 32
Regs Per Block: 65536
Threads Per Block: 1024
Threads Dimensions: 1024 x 1024 x 64
Grid Dimensions: 2147483647 x 65535 x 65535
Watchdog Enabled: Yes
Integrated GPU: No
Concurrent Kernels: Yes
Compute Mode: Default
Stream Priorities: No
</code></pre>
<p>…<br>
(as reported by cuda-z).</p>
<p>What I did, was the following: I uninstalled all previous attempts to install CUDA for pytorch -and - simply copied your ‘pip install’ string in windows shell. After the installation, I again copied</p>
<pre><code class="lang-auto">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.cuda.is_available()
</code></pre>
<p>and - obtained True!</p>
<p>What is then the difference between you case and mine?</p>

Stacy_Maimoon: <p>My joy was premature. At the very first attempt to really use CUDA (which is ‘available’, according to PyTorch output), I am getting:</p>
<pre><code>UserWarning: 
Found GPU0 Quadro K2100M which is of cuda capability 3.0.
PyTorch no longer supports this GPU because it is too old.
The minimum cuda capability that we support is 3.5.
</code></pre>
<p>and:</p>
<pre><code>RuntimeError: CUDA error: no kernel image is available for execution on the device.
</code></pre>
<p>Is there any possibility, after all, to use NVIDIA Quadro K2100M as CUDA enhancer for PyTorch?</p>

dan_tyvan: <p>Thanks for your reply, what I am trying now is going back to whatever was the state of the art in 2015. So I am trying Python 3.5 and pytorch 1.0. Will post here how it goes.</p>

Amey_Kore: <p><a class="mention" href="/u/dan_tyvan">@dan_tyvan</a> Hey did it work? I am facing the same issue.</p>

palguna_gopireddy: <p>You just have to update the driver version. Nothing much is needed.<br>
Cuda does not support older versions of GPU.</p>

dan_tyvan: <p>Hey, no it didn’t. I’ve given up with this hardware <img src="https://discuss.pytorch.org/images/emoji/apple/man_shrugging.png?v=12" title=":man_shrugging:" class="emoji" alt=":man_shrugging:" loading="lazy" width="20" height="20"></p>

Garfius: <p>Hello, my case <span class="spoiler">was</span> is similar to yours, just documenting what worked after MANY HOURS working.</p>
<p>Machine: Asus X555LJ<br>
GPU: Nvidia GeForce 920M - PCI\VEN_10DE&amp;DEV_1299<br>
Windows driver version: 25.21.14.2600<br>
Driver Version: 425.31<br>
CUDA Version: 10.1<br>
Python: 3.8<br>
.\pip.exe install numpy<br>
.\pip.exe install torch==1.8.1+cu101 -f <a href="https://download.pytorch.org/whl/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/torch_stable.html</a></p>
<p>After all this i got:<br>
torch.cuda.is_available()<br>
True​:tada:<img src="https://discuss.pytorch.org/images/emoji/apple/tada.png?v=12" title=":tada:" class="emoji" alt=":tada:" loading="lazy" width="20" height="20"></p>

Stefani_Love: <p>Both have to be updated to the latest or it won’t work simple as that.</p>