Hi there, I enabled the WSL2 on my Windows host, and in the wsl ( linux ), I installed docker and nvidia-docker2 using instructions here : 1. NVIDIA GPU Accelerated Computing on WSL 2 — CUDA on WSL 12.3 documentation.
Then I proceeded to run
docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
and it Returns this Error
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: detection error: stat failed: /dev/dxg: no such file or directory: unknown. ERRO[0000] error waiting for container: context canceled
Some Info on my system.
uname -a
Linux DESKTOP-P8Q3G0P 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
nvidia-smi
on windows shell
`
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.06 Driver Version: 510.06 CUDA Version: 11.6 |
|-------------------------------±---------------------±---------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … WDDM | 00000000:2B:00.0 On | N/A |
| 0% 43C P8 23W / 320W | 711MiB / 10240MiB | 2% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1472 C+G Insufficient Permissions N/A |
| 0 N/A N/A 6756 C+G …stic Light\LEDKeeper2.exe N/A |
| 0 N/A N/A 7348 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 8920 C+G …artMenuExperienceHost.exe N/A |
| 0 N/A N/A 9268 C+G …5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 9388 C+G …nputApp\TextInputHost.exe N/A |
| 0 N/A N/A 10400 C+G …perience\NVIDIA Share.exe N/A |
| 0 N/A N/A 13140 C+G …zf8qxf38zg5c\SkypeApp.exe N/A |
| 0 N/A N/A 13688 C+G …e\Current\LogiOverlay.exe N/A |
| 0 N/A N/A 14444 C+G …bbwe\Microsoft.Photos.exe N/A |
| 0 N/A N/A 14560 C+G …y\ShellExperienceHost.exe N/A |
| 0 N/A N/A 18816 C+G …ram Files\LGHUB\lghub.exe N/A |
| 0 N/A N/A 19592 C+G …me\Application\chrome.exe N/A |
| 0 N/A N/A 20016 C+G …s (x86)\Origin\Origin.exe N/A |
| 0 N/A N/A 21640 C+G …zpdnekdrzrea0\Spotify.exe N/A |
| 0 N/A N/A 25476 C+G …b3d8bbwe\WinStore.App.exe N/A |
±----------------------------------------------------------------------------+
`
How should I resolve this ? There are other relevant threads, like this :
that mentioned incorrect driver version or linux version, but they’re not clear on exact steps to correct them.