PyTorch no longer supports this GPU because it is too old

fansuregrin: <p>Hello, I intend to use PyTorch with Cuda on my machine but I got this error.</p>
<pre><code class="lang-auto">Found GPU0 NVIDIA GeForce MX110 which is of Cuda capability 5.0.
    PyTorch no longer supports this GPU because it is too old.
    The minimum Cuda capability supported by this library is 5.2.
</code></pre>
<p>I searched this issue on Google, and someone said I should build my own PyTorch from source code. But I don’t know how to make PyTorch work with my GPU. And which parameters should I add to build it? So I post this for help.</p>

AlphaBetaGamma96: <p>Hi <a class="mention" href="/u/fansuregrin">@fansuregrin</a>,</p>
<p>You’re most likely going to have to build PyTorch from source, the instructions for this can be found <a href="https://github.com/pytorch/pytorch#from-source" rel="noopener nofollow ugc">here</a> which will require you to install CUDA, and cuDNN separately as well but it’s all listed out in the instructions. Good luck!</p>

ptrblck: <p>Which PyTorch version are you using? The current binaries should be compatible for all compute capabilities &gt;=3.7.</p>

fansuregrin: <p>Thanks for your reply! Unfortunately, I tried to build it from the source but the compiling progress used up all my memory space and my machine got stuck. Obviously, my laptop is not strong enough to do this compiling jod. <img src="https://discuss.pytorch.org/images/emoji/apple/frowning.png?v=12" title=":frowning:" class="emoji" alt=":frowning:" loading="lazy" width="20" height="20"></p>

fansuregrin: <p>my pytorch with cuda is version: 1.12.1</p>

AlphaBetaGamma96: <p>memory or storage? Because they are different things, you might need to just clear some space.</p>

ptrblck: <p><code>1.12.1</code> should work, as 3.7+ is supported:</p>
<pre><code class="lang-python">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.12.1+cu116'
&gt;&gt;&gt; torch.cuda.get_arch_list()
['sm_37', 'sm_50', 'sm_60', 'sm_70', 'sm_75', 'sm_80', 'sm_86']
</code></pre>

fansuregrin: <p>Oh, sorry! My English is poor. I mean I only have  12 GB of RAM and it’s not enough.</p>

fansuregrin: <p>In my system, my output like this:</p>
<pre><code class="lang-auto">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.12.1'
&gt;&gt;&gt; torch.cuda.get_arch_list()
['sm_52', 'sm_60', 'sm_62', 'sm_70', 'sm_72', 'sm_75', 'sm_80', 'sm_86', 'sm_87', 'compute_87']
</code></pre>
<p>By the way, I use Archlinux and the PyTorch package I installed is from this Linux distribution’s official repository. Maybe it’s packager compile it by his own mean. I will try the package from pypi or anaconda.</p>

fansuregrin: <p>I solved this problem. I installed pytorch through conda and it can work properly with my gpu.</p>

ptrblck: <aside class="quote no-group" data-username="fansuregrin" data-post="9" data-topic="159851">
<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/fansuregrin/48/52648_2.png" class="avatar"> fansuregrin:</div>
<blockquote>
<p>I use Archlinux and the PyTorch package I installed is from this Linux distribution’s official repository.</p>
</blockquote>
</aside>
<p>I don’t know who is building it, but it doesn’t seem to come from us and also shows a different GPU architecture support.<br>
In any case, I would recommend to stick to our pip wheels and conda binaries as they should and are working on your system.</p>