WSL Tutorial Samples Fail, No GPU available, Titan XP

I cannot complete the tutorials in
I have tried with two Ubuntu products from the Windows store, Ubuntu and Ubuntu 18.04, both yield the same results. The Titan XP is the only GPU in this desktop. Currently at a loss on what to do next, any direction would be very appreciated. NVIDIA SMI says my CUDA version is 11.2, does this need to be rolled back to 11.0?

Notes and build versions:

Output of BlackScholes

$ ./BlackScholes
[./BlackScholes] - Starting…
CUDA error at …/…/common/inc/helper_cuda.h:777 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCount(&device_count)”

Output of docker benchmark:

$ sudo docker run --gpus all nbody -gpu -benchmark
Error: only 0 Devices available, 1 requested. Exiting.


2020-12-08 23_30_45-Window
Windows Version:
Version 2004 (OS Build 20231.1005)

Output of wsl -l -v


  • Ubuntu-18.04 Running 2
    Ubuntu Stopped 2

Output of uname -a

$ uname -a
Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

PyTorch claiming no NVIDIA driver is installed and device count is 0

/home/ghost/.local/lib/python3.6/site-packages/torch/cuda/ UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0


Checked this post: CUDA sample throwing error
I have these files

Output of nvidia-smi:

$ nvidia-smi

Command ‘nvidia-smi’ not found, but can be installed with:

sudo apt install nvidia-340
sudo apt install nvidia-utils-390


1  uname -a
2  apt-key adv --fetch-keys
3  sh -c 'echo "deb /" > /etc/apt/sources.list.d/cuda.list'
4  sudo sh -c 'echo "deb /" > /etc/apt/sources.list.d/cuda.list'
5  sudo apt-get update
6  sudo apt-get update --allow-unauthenticated
7  deb [trusted=yes]
8  vi
9  vi /etc/apt/sources.list

10 man apt-secure
11 vi /etc/apt/sources.list
12 cat /etc/os-release
13 sudo apt-get update
14 wget -qO | sudo apt-key add -
15 apt-key adv --fetch-keys
16 sudo apt-key adv --fetch-keys
17 sudo sh -c ‘echo “deb /” > /etc/apt/sources.list.d/cuda.list’
18 sudo apt-get update
19 sudo apt-get install -y cuda-toolkit-11-0
20 cd /usr/local/cuda/samples/4_Finance/BlackScholes
21 make all
22 sudo make all
23 ls
24 ./BlackScholes
25 sudo ./BlackScholes
26 make clean
27 sudo make clean
28 sudo make all
29 ./BlackScholes
30 curl | sh
31 distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
32 sudo curl -s -L | sudo apt-key add -
33 sudo curl -s -L$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
34 sudo curl -s -L$distribution/libnvidia-container-experimental.list | sudo tee /etc/apt/sources.list.d/libnvidia-container-experimental.list
35 sudo apt-get update
36 sudo apt-get install -y nvidia-docker2
37 sudo service docker stop
38 sudo service docker start
39 docker run --gpus all nbody -gpu -benchmark
40 sudo docker run --gpus all nbody -gpu -benchmark
41 nvidia-smi
42 python3
43 cd ~
44 ls
45 cd …
46 ls
47 cd …
48 ls
49 cd mnt/
50 ls
51 cd c/
52 ls
53 cd Users/ghostuser/
54 cd detectron2_windows/
55 python3
56 sudo apt-get install python3-distutils
57 python3
58 python3 -m pip install torch
59 python3
60 history


Hello, my mistake is the same as yours. How did you solve it