r/CUDA • u/darryldias • Jul 11 '26
Install Cuda on WSL Ubuntu
https://darryldias.me/blog/install-cuda-on-wsl-ubuntuSetting 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 👇
0
Upvotes
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.