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

Unable to limit container to see just a single GPU device #983

Open
lowlyocean opened this issue Mar 12, 2025 · 1 comment
Open

Unable to limit container to see just a single GPU device #983

lowlyocean opened this issue Mar 12, 2025 · 1 comment

Comments

@lowlyocean
Copy link

lowlyocean commented Mar 12, 2025

docker run --runtime=nvidia --gpus '"device=1"' -e NVIDIA_VISIBLE_DEVICES=1 -e CUDA_VISIBLE_DEVICES=1 nvidia/cuda:12.8.0-base-ubi9 nvidia-smi -L

Returns multiple GPUs, instead of just GPU 1

  • WSL version: 2.4.11.0 (running Docker version 28.0.1 and nvidia-container-toolkit version 1.17.5-1 within Ubuntu 20.04.6 LTS)
  • Host NVIDIA driver version 572.70
@elezar
Copy link
Member

elezar commented Mar 12, 2025

@lowlyocean the system level interface on WSL is different to "standard" Linux-based systems. A single /dev/dgx device node is used to provide access to the device(s) on the system. As such there is no mechansim for us to provide device filtering on WSL.

This is a known limitation.

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