Docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]

I finally got it to work and wanted to post a follow up.

From this page:

I ran the code below this section:
Install the NVIDIA Container Toolkit. WSL 2 support is available starting with nvidia-docker2 v2.3 and the underlying runtime library libnvidia-container 1.2.0-rc.1.

Now receiving this error:
docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.

I found this post from mylesagray:
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

and now it works! Thank you.


MapSMtoCores for SM 7.5 is undefined. Default to use 64 Cores/SM
GPU Device 0: “GeForce RTX 2080” with compute capability 7.5

Compute 7.5 CUDA device: [GeForce RTX 2080]
47104 bodies, total time for 10 iterations: 69.063 ms
= 321.269 billion interactions per second
= 6425.381 single-precision GFLOP/s at 20 flops per interaction