WSL: can't setup cuda for wsl pytorch
Here’s detail about my laptop
- Microsoft Windows [Version 10.0.19043.1586]
- WSL version 2
- Kernel version: Linux version 5.10.16.3-microsoft-standard-WSL2
- Ubuntu 20…04
I follow this tutorial enabling-gpu-acceleration-on-ubuntu-on-wsl2-with-the-nvidia-cuda . I carefully follow all step until I try to compile sample application. After successfully run sudo make then I execute ./deviceQuery But there’s error says:
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
Here i show my driver and cuda version.

I also try to install torch via pip and test if torch detect gpu and it says False. Any idea what i need to do? Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 44
@rzsgrt Hey! Please add this to the end of your .bashrc file
and open and close the terminal and run
nvcc --version. Does that fix the issue for you?yeah i’m also thinking about this.