QuestionQ127

VerifiedSystem and Server Bring-up

A researcher needs to let a container use only two particular GPUs from the four available on the host: GPU 1 and GPU 2. The system is already configured for NVIDIA Docker with the Container Toolkit.

Which Docker command correctly assigns only these GPUs to the container?

Explanation

Docker exposes selected NVIDIA GPUs through --gpus using the device option. A quoted value of device=1,2 selects exactly the host GPUs with indices 1 and 2; specifying only a GPU count does not guarantee which devices are assigned.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!