docker run `
--rm `
--privileged `
--gpus all `
-it `
vulkan `
vulkaninfo --summary
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
Summary giving me the physical GPU. If I run within WSL2 I get the following:
I expect this also inside docker.
Actual behavior:
I only get the CPU for vulkan. See screenshot.
Running nvidia-smi inside the docker container gives.
So the GPU is recognized within docker but vulkan is not selecting it. It seems that the icd.d json is also missing inside WSL and therefore vulkan within the docker container cannot map to it and does not recognize the GPU
Windows build number:
Microsoft Windows [Version 10.0.22631.3296]
Your Distribution version:
Ubuntu 22.04
Your WSL versions:
2.0.14.0
Steps to reproduce:
GIVEN following Dockerfile
BUILD Dockerfile
RUN with
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
Summary giving me the physical GPU. If I run within WSL2 I get the following:
I expect this also inside docker.
Actual behavior:
I only get the CPU for vulkan. See screenshot.
Running nvidia-smi inside the docker container gives.![image](https://github.com/microsoft/WSL/assets/8503234/5a977788-f711-4674-9ac1-6d3b174ed180)
So the GPU is recognized within docker but vulkan is not selecting it. It seems that the icd.d json is also missing inside WSL and therefore vulkan within the docker container cannot map to it and does not recognize the GPU