Hello everyone. I’m facing the same problem, but despite having followed all the guidelines in the post, nothing went right. Here is my procedure:
I have a Dell Inspiron 15 7000 Gaming notebook, with an NVIDIA GeForce GTX 1050 Ti card, and Windows 10 Pro Insider Preview, 2004, 21277.1000, with Windows Update Advanced options enabled to enable recommended Microsoft updates and run the check again . Several times I followed the tutorial step ‘CUDA on WSL :: CUDA Toolkit Documentation’ for installing and configuring the CUDA Toolkit:
Installing NVIDIA Drivers on Windows:
460.89 - 12/15/2020
Installing WSL 2: I had already installed it in advance through the tutorial ‘Instalar o WSL | Microsoft Docs’ - 9/15/2020
PowerShell (admin):
Linux version:
PS C:\Users\sanam> wsl cat /proc/version
Linux version 5.4.72-microsoft-standard-WSL2 (oe-user @ oe-host) (gcc version 8.2.0 (GCC)) # 1 SMP Wed Oct 28 23:40:43 UTC 2020
Ubuntu-18.04 installed by Microsoft Store:
PS C:\Users\sanam> wsl --list --verbose
NAME STATE VERSION
Ubuntu-18.04 Running 2
GPU recognition:
PS C:\Users\sanam> nvidia-smi
Activating Ubuntu:
PS C:\Users\sanam> wsl
Ubuntu CLI:
/mnt/c/Users/sanam$ cd ~
~$ sudo su
…
~# sudo apt update
~# sudo apt upgrade
Verify You Have a CUDA-Capable GPU (‘Installation Guide Linux :: CUDA Toolkit Documentation’):
~# update-pciids
Downloaded daily snapshot dated 2020-12-13 03:15:01
~# lspci | grep -i nvidia
“Nothing happens!”
Verify You Have a Supported Version of Linux:
~# uname -m
x86_64
~# cat /etc/*release
…
PRETTY_NAME = “Ubuntu 18.04.5 LTS”
…
Verify the System Has gcc Installed:
~# gcc --version
Command ‘gcc’ not found, but can be installed with:
apt install gcc
~# apt update
~# gcc --version
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSEgcc (Ubuntu 7.5.0-3ubuntu1 ~ 18.04) 7.5.0
Verify the System has the Correct Kernel Headers and Development Packages Installed:
~# uname -r
5.4.72-microsoft-standard-WSL2
Setting up CUDA Toolkit:
~# apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
~# sh -c ‘echo “deb Index of /compute/cuda/repos/ubuntu1804/x86_64 /”> /etc/apt/sources.list.d/cuda.list’
~# apt-get update
~# apt-get install -y cuda-toolkit-11-0
Running CUDA Applications:
~# cd /usr/local/cuda/samples/4_Finance/BlackScholes
~# make
~# ./BlackScholes
[./BlackScholes] - Starting …
CUDA error at …/…/common/inc/helper_cuda.h:777 code = 35 (cudaErrorInsufficientDriver) “cudaGetDeviceCount (& device_count)”
Since then I am looking for how to solve this problem. If possible, I would appreciate your help.
Thanks.