We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft Windows [Version 10.0.22631.3296]
2.0.14.0
5.15.133.1-1
Ubuntu 22.04
Docker Desktop (Windows): 4.28.0
GIVEN following Dockerfile
FROM nvidia/cuda:12.3.2-base-ubuntu22.04 ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES all # DEPENDENCIES RUN apt update && apt install -y software-properties-common RUN add-apt-repository ppa:kisak/kisak-mesa && apt update RUN apt update && apt install -y \ libatomic1 \ libxi6 \ libxrandr2 \ libxt6 \ libegl1 \ libglu1-mesa \ libgomp1 \ libsm6 \ libvulkan1 \ mesa-vulkan-drivers \ vulkan-tools \ sudo && rm -rf /var/lib/apt/lists/* WORKDIR /etc/vulkan/icd.d RUN ls -l RUN sudo touch nvidia_icd.json RUN printf "{ \"file_format_version\" : \"1.0.0\", \"ICD\": { \"library_path\": \"libGLX_nvidia.so.0\", \"api_version\" : \"$(dpkg -s libvulkan1 | grep -oP 'Version: [0-9|\.]+' | grep -oP '[0-9|\.]+')\" } }" | sudo tee nvidia_icd.json
BUILD Dockerfile
WHEN running vulkaninfo --summary command in WSL2 (Default distro is Ubuntu) itself it gives the following result:
vulkaninfo --summary
So WSL2 recognizes the GPU
RUNNING following command:
docker run ` --rm ` --privileged ` --gpus=all ` -it ` vulkaninfo --summary
GIVES the following result:
docker run ` --rm ` --privileged ` --gpus=all ` -it ` nvidia-smi
No response
The text was updated successfully, but these errors were encountered:
The GPU is available in WSL2 so the issue is most likely at the docker level. I'd recommend raising the issue here instead.
Closing since this is not a WSL2 issue.
Sorry, something went wrong.
No branches or pull requests
Windows Version
Microsoft Windows [Version 10.0.22631.3296]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
Docker Desktop (Windows): 4.28.0
Repro Steps
GIVEN following Dockerfile
BUILD Dockerfile
Expected Behavior
WHEN running

vulkaninfo --summary
command in WSL2 (Default distro is Ubuntu) itself it gives the following result:So WSL2 recognizes the GPU
Actual Behavior
RUNNING following command:
GIVES the following result:

RUNNING following command:
GIVES the following result:

Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: