-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Permit usage of GPUs in docker script #1985
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
Conversation
|
This does unfortunatelly not work on Apple Silicon:
but since the script still works when this flag is not set it should be fine. |
mauwii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add this flag to the docs, with a short description when to use
I wonder if you can use something like |
mauwii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thx for contributing!
good Idea, but unfortunatelly not: |
This permits you to use GPUs by running the docker script like:
GPU_FLAGS="--gpus all" ./docker-build/run.shIf you don't set the GPU_FLAGS it is ignored, and therefore does not affect running docker on the CPU for hosts without a GPU.