PyTorch version for cuda compute capability 3.0 (GTX 780M)

HaziqRazali: <p>I installed PyTorch on my laptop only to find out that my GPU is not supported. Is there a version that I can use that still supports my GPU ? Or are there any other solutions ?</p>
<blockquote>
<p>/home/haziq/anaconda3/envs/dl/lib/python3.5/site-packages/torch/cuda/<strong>init</strong>.py:97: UserWarning:<br>
Found GPU0 GeForce GTX 780M which is of cuda capability 3.0.<br>
PyTorch no longer supports this GPU because it is too old.</p>
<p>warnings.warn(old_gpu_warn % (d, name, major, capability[1]))</p>
</blockquote>

ptrblck: <p>You could build PyTorch from source.<br>
The installation is described <a href="https://github.com/pytorch/pytorch#from-source">here</a>.<br>
Let me know, if you encounter any problems.</p>

HaziqRazali: <p>I saw this in another thread <a href="https://discuss.pytorch.org/t/pytorch-no-longer-supports-this-gpu-because-it-is-too-old/13803/3" class="inline-onebox">PyTorch no longer supports this GPU because it is too old. - #3 by aiz_berg</a></p>
<blockquote>
<p>We’ve got PyTorch CUDA bundles 167 with compute capabilities starting 3.0, 3.5<br>
There is no separate python package, but you can extract the package from the installer archive.</p>
</blockquote>
<p>which linked to this webpage <a href="http://jetware.io/appliances/jetware/pytorch03_python3_cuda91#appliance_usage_vm_images" class="inline-onebox" rel="noopener nofollow ugc">Jetware - aise / pytorch03_python3_cuda91 - 180306 appliance</a>. I saw a VirtualBox image download and so was wondering if this is an alternative ? Would prefer not to build from source as I am really good at encountering problems.</p>

ptrblck: <p>Oh, I haven’t used it, so I cannot comment on the jetware images.<br>
Haha, you should give it a try. It’s quite simple. Just follow the steps from my previous link and try it out. <img src="https://discuss.pytorch.org/images/emoji/apple/wink.png?v=5" title=":wink:" class="emoji" alt=":wink:"></p>

kingcobraninja: <p>Answer to original question: PyTorch 0.3.0 is the last release to support compute capability 3.0</p>
<p>source: <a href="https://github.com/pytorch/pytorch/releases/tag/v0.3.1" class="inline-onebox" rel="noopener nofollow ugc">Release Bug fixes and performance improvements · pytorch/pytorch · GitHub</a></p>
<blockquote>
<p>Removed support for CUDA capability 3.0 and 5.0</p>
</blockquote>

Rana_Wasil: <p>I am new to this and I am using gtx 770 i need to train Yolo models and I really need help regarding this PyTorch from source thing. Can you please guide me in this ? should i do exact same steps mentioned in this ?</p>

ptrblck: <p>Yes, read the instructions from my link and follow them. I would also recommend to stick to a clean environment (e.g. create a new virtual conda environment) and also a “common” OS such as Ubuntu 20.04. Other linux flavors would of course also work, but you might need to install the appropriate toolchain.</p>

Rana_Wasil: <p>Oh, so is Linux or Ubuntu necessary? As I am using windows</p>

ptrblck: <p>No, Linux is not necessary and you should be able to build PyTorch using Windows. However, I’m not deeply familiar with Windows and its build process/setup.</p>

Rana_Wasil: <p>Alright, So i shall try followinf your links points of windows and will let you know if theres any problem occurs</p>

Rana_Wasil: <p>OK, I am following the steps but I have some confusion if you can help.</p>
<ol>
<li>I am using Cuda 11.6 with VS code 2022. for my gtx 770 to work</li>
<li>Its mentioned the legacy version (I don’t know whether I should do it as I don’t know what it is or should I just go with the same page till the end)</li>
<li>Do I have to follow Cuda Build? For GPU to work</li>
</ol>

ptrblck: <ol start="2">
<li>I don’t know what “legacy version” refers to, but am also not familiar with Windows builds.</li>
<li>Yes, you need to use the CUDA compiler to build PyTorch with GPU support.</li>
</ol>

Rana_Wasil: <p>OK Perfect will do that</p>

Rana_Wasil: <p>Hi, it has been a long time though as I thought of buying a new GPU but still it will take time to deliver so I am back again <img src="https://discuss.pytorch.org/images/emoji/apple/face_with_diagonal_mouth.png?v=12" title=":face_with_diagonal_mouth:" class="emoji" alt=":face_with_diagonal_mouth:" loading="lazy" width="20" height="20"> Anyways I have implemented each and every step and opened Jupiter notebook but it showed the error as “Torch not compiled with CUDA enabled”</p>

Rana_Wasil: <p>Hi did it work? I have been into this for a long time still cant able to do it.</p>

kit1980: <p>GeForce GTX 770 is a very old architecture (released in 2013), I don’t think it’s supported with recent PyTorch.</p>

LeorFinacre: <p>Hello, I’m sorry to revive an old thread but it’s been 3-4 days and i’m still stuck.</p>
<p>I have a GTX 770M Graphic Card with the Legacy Drivers installed version 470.239.06<br>
I try to run Deepstack in GPU mode since I have a Graphic Card installed in this old notebook.</p>
<p>Therefore, when deepstack is running the stderr.logs says :</p>
<blockquote>
<p>Found GPU%d %s which is of cuda capability %d.%d.<br>
PyTorch no longer supports this GPU because it is too old.<br>
The minimum cuda capability supported by this library is %d.%d.<br>
warnings.warn(old_gpu_warn.format(d, name, major, minor, min_arch // 10, min_arch % 10))</p>
</blockquote>
<p>I know my graphic card can only compute 3.0 and I need to build another pytorch version to get it running but I don’t really know how to do it.<br>
Is the link provided by <a class="mention" href="/u/ptrblck">@ptrblck</a> is still up to date ?</p>
<p>(I think I also need CUDA 10.2 but I can’t get it installed, I always end up with last version which is 12.xx)</p>
<p>Thank’s a lot for the help you could provide</p>