I am trying install Cuda on WSL 2. I am following instructions such as this.
After executing every step, I try to check if gpu is available in the Linux environment by executing docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark (as suggested by the aforementioned instructions).
But I get the following error:
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled.
Any ideas what might be the cause of this?