Here is another nVidia document stating the same issue you're facing in Chapter 8. Personaly, i follewed this youtube tutorial from David Bombal channel.Īfter these three steps preformed correctly, you can follow along the nVidia tutorial from Setting up CUDA Toolkit. Finally, install WSL2 from tutorial, this is also pretty straight forward process.Next, install the NVIDIA preview driver for WSL 2, it's pretty straight forward process.Check again your windows version with (winver) to find it, it's indeed above 20145. After the restart you're good to go (you will also notice some design diffrence between the two version of windows). You nedd to install it, here you need to be patient because it take while to download and install the update, it will ask you for windows restart. Here was the tricky part for me, after you select Dev channel check your windows version by running (winver) program (search for it in the search bar of windows) if it's below 20145 go re-check your windows for an update (you will see in the update discription version above 20145 is availble). Make sure that is set to Dev channel not Beta Channel nor Release Preview Channel. Then you need to subscribe in Microsoft Windows Insider Program, specifically subscribe in Dev Channel (Fast ring). First, check your windows if there is an updates, update if there is any.There are three thing you need do them correctly and in order: I think the best way to get nVidia GPU (CUDA) running on WSL2 is to follow the tutorial from nVidia documentation CUDA on WSL. Windows Docker with WSL2-based engine and integration enabledĪny help how to diagnose it further is much appreciated I have definitely enabled WSL2-based engine and integration for Ubuntu 20.04 enabled in two different tabs in Docker settings. We recommend to activate the WSL integration in Docker Desktop settings. The command 'docker' could not be found in this WSL 2 distro. mnt/c/ProgramData/DockerDesktop/version-bin/docker Which does not work (See above).Īdditionally, after removing docker from ubuntu I can still run docker from Ubuntu20.04 or when I run wsl from Powershell: $ which docker there are tips on how to fix it here, but it is all about docker running from within Linux.Nbody: Pulling from nvidia/k8s/cuda-sampleĭocker: Error response from daemon: could not select device driver "" with capabilities: ]. Unable to find image 'nvcr.io/nvidia/k8s/cuda-sample:nbody' locally ![]() Well, I am not able to run nvidia-docker from Windows at all: $ docker run -gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark I am running into the same thing under WSL2.Īnother school of thought suggest removing docker from WSL Ubuntu and running Windows docker instead.
0 Comments
Leave a Reply. |