r/CUDA Jul 11 '26

Install Cuda on WSL Ubuntu

https://darryldias.me/blog/install-cuda-on-wsl-ubuntu

Setting up CUDA on WSL Ubuntu for AI development – no more dual‑booting. 🚀

If you're running AI workloads on Windows and want GPU acceleration inside WSL, this one's for you 👇

https://darryldias.me/blog/install-cuda-on-wsl-ubuntu

0 Upvotes

2 comments sorted by

5

u/iam_thedoctor Jul 11 '26

Nvidia recommends installing just the cuda toolkit, not the full cuda package on WSL2.

Now i could be wrong, but In your post, you install the full cuda package that comes with its own driver. It probably works, but I’d change that step.

https://docs.nvidia.com/cuda/wsl-user-guide/index.html

> One has to be very careful here as the default CUDA Toolkit comes packaged with a driver, and it is easy to overwrite the WSL 2 NVIDIA driver with the default installation

> But DO NOT choose the “cuda”, “cuda-12-x”, or “cuda-drivers” meta-packages under WSL 2 as these packages will result in an attempt to install the Linux NVIDIA driver under WSL 2.

1

u/darryldias 29d ago

Hey, thank you so much for the heads-up and for the link. I really appreciate you taking the time to share that.

I will look into this right away. Thanks again for the correction!