Skip to content
New issue

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

Docker vulkaninfo only showing CPU #11303

Closed
1 of 2 tasks
selmiskr opened this issue Mar 14, 2024 · 1 comment
Closed
1 of 2 tasks

Docker vulkaninfo only showing CPU #11303

selmiskr opened this issue Mar 14, 2024 · 1 comment

Comments

@selmiskr
Copy link

selmiskr commented Mar 14, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.3296]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

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

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

Expected Behavior

WHEN running vulkaninfo --summary command in WSL2 (Default distro is Ubuntu) itself it gives the following result:
image

So WSL2 recognizes the GPU

Actual Behavior

RUNNING following command:

docker run `
--rm `
--privileged `
--gpus=all `
-it `
vulkaninfo --summary

GIVES the following result:
image

RUNNING following command:

docker run `
--rm `
--privileged `
--gpus=all `
-it `
nvidia-smi

GIVES the following result:
image

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants