I followed instructions documented at https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2.
A few things that wwere not documented:
- After the Insiders Dev channel install, my WSL kernel version was still unchanged. Restarting the computer fixed it.
sudo service docker start
did not work for me. It looks like Systemd is not/can't be the init system in WSL2. What worked is simplysudo dockerd
. Then I had an issue with cgroups, fixed with:
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd