Since you have the driver 470.76 I recommend to uninstall/disable Docker Desktop and install the nvidia docker in your WSL2 distro following this :: (nvidia.com)
I uninstalled Docker desktop. The only distro now is Ubuntu.
I set up the cuda toolkit 11-0 and tried to run sample application, BlackScholes . But it gives the output-
[./BlackScholes] - Starting… CUDA error at …/…/common/inc/helper_cuda.h:777 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCount(&device_count)”
What could be possibly wrong?
uname -a gives the following output in Ubuntu:
Linux nling-test9 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux r
Update your kernel with wsl.exe --update. The " *code=35(cudaErrorInsufficientDriver)" error normally means you have installed the nvidia driver inside WSL2. Remove it, or reinstall the WSl2 distro because the only thing you need is the Windows driver 470.76.
Version Dev (OS build 21390.2025)
When I restarted the computer, it seems okay now. But I’m not sure how to use the VSCODE for development. Do you have any options other than VScode to use GPU with WSL.