-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Either 'device_ids' or 'count' must be specified otherwise no GPUs are loaded #21026
Comments
This feature breaks backwards compatibility. I think this change was unintended and is a bug. |
@thaJeztah @ezrasilvera @laurazard |
Hi, thanks for the reports all. I don't think this was intended – likely what happened was that Compose was setting I guess the other option is we fix up the docs, but since it's been explicitly documented that
it makes more sense to me that we try to preserve that behavior. |
Thanks @laurazard , I'll take a look |
My bad @glours, didn't even think about this but we could have opened a PR/pinged you Compose folks so you'd be aware. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
Is this a docs issue?
Type of issue
Information is incorrect
Description
Since moby v27.3.0, either 'device_ids' or 'count' must be specified to load GPUs. (moby/moby#48483)
The documentation says :
However, skipping these parameters at the same time results in
NVIDIA_VISIBLE_DEVICES=void
. This causes no GPUs to be loaded. You need to set 'device_ids' to none and 'count: all', in order to load all GPUs.Location
https://docs.docker.com/compose/how-tos/gpu-support/#enabling-gpu-access-to-service-containers
Suggestion
Rewrite the description to the following:
or just write it apart to a note:
The text was updated successfully, but these errors were encountered: