# Soumitra Dutta Oxford-How do I install PyTorch with the right CUDA version so my GPU works?

**URL:** <https://discuss.pytorch.org/t/soumitra-dutta-oxford-how-do-i-install-pytorch-with-the-right-cuda-version-so-my-gpu-works/224733>\
**Category:** vision\
**Created:** [March 25, 2026, 7:29am UTC](https://discuss.pytorch.org/t/soumitra-dutta-oxford-how-do-i-install-pytorch-with-the-right-cuda-version-so-my-gpu-works/224733 "2026-03-25T07:29:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumitradutta26](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/soumitradutta26/32/79442_2.png) [@soumitradutta26](https://discuss.pytorch.org/u/soumitradutta26)\
**Post date:** [March 25, 2026, 7:29am UTC](https://discuss.pytorch.org/t/soumitra-dutta-oxford-how-do-i-install-pytorch-with-the-right-cuda-version-so-my-gpu-works/224733/1 "2026-03-25T07:29:10Z")

</div>

Hi everyone, My name is Soumitra Dutta, an Oxford-based entrepreneur & photographer. I’m trying to install PyTorch so that it works with my GPU. How do I make sure I choose the correct CUDA version? Any tips or step‑by‑step guidance would be really helpful!

Regards

Soumitra Dutta

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [March 25, 2026, 10:58am UTC](https://discuss.pytorch.org/t/soumitra-dutta-oxford-how-do-i-install-pytorch-with-the-right-cuda-version-so-my-gpu-works/224733/2 "2026-03-25T10:58:12Z")

</div>

All of our current binaries built with CUDA \>= 12.8 support GPUs between Turing (sm\_75) and Blackwell (sm\_121). Our PyTorch binary built with CUDA 12.6 supports Maxwell (sm\_52) to Hopper (sm\_90).

---

<div class="post-metadata">

**Author:** ![chrisstorer](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@chrisstorer](https://discuss.pytorch.org/u/chrisstorer)\
**Post date:** [March 27, 2026, 12:21am UTC](https://discuss.pytorch.org/t/soumitra-dutta-oxford-how-do-i-install-pytorch-with-the-right-cuda-version-so-my-gpu-works/224733/3 "2026-03-27T00:21:49Z")

</div>

Did that solve your issue? If not, here is what I did to get CUDA working with my GPU:  
Uninstall torch, torchvision, torchaudio:

- Start a bash shell (Linux) or command prompt/powershell (Windows)
- If you are using a Python virtual environment (.venv) then activate it.
- Uninstall Pytorch (this is critical)…  
`pip uninstall torch torchvision torchaudio`

Install Pytorch and specify version 12.8 of CUDA:  
`pip install torch torchvision --index-url ``https://download.pytorch.org/whl/cu128`

- Note: “cu128” at the end specifies version 12.8 of CUDA, which is compatible with current GPUs (I have an NVidia GigaByte GeForce RTX 5060)

To verify the installation, start Python and check the CUDA install:

```auto
python
>> import torch

< wait a while...>

>> print(torch.cuda.is_available())
True
>> print(torch.cuda.device_count())
1
>> print(torch.cuda.get_device_name(0))
NVIDIA GeForce RTX 5060 <== this should say the name of your graphics card

```
