Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

GPU/Docker not working Ubuntu 20.04 in the WSL 2 of Windows

$
0
0

I'm trying to follow this blog article to get CUDA working in a Ubuntu 20.04 kernel running in WSL 2 in Windows 10 (build 20201.1000 with Nvidia driver 455.41) and am getting the error below for this command.

COMMAND: docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark

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

Research suggests that docker may need to be restarted to make this work but unfortunately the commands about stopping and starting docker from the same blog posting don't quite work (the stop does but not the start) so I think that may be the problem but am unsure what to try next.

The start command is stated to be "sudo service docker stop" but I get a response of "docker: unrecognized service". Same thing if I try "sudo service docker start" which seems a more appropriate command to 'start' a service.

Note that I can get a list of services using "sudo service --status-all" but docker isn't listed. It is however there somewhere as "docker --version" works.

Thanks,

Dave


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>