-
Notifications
You must be signed in to change notification settings - Fork 2.1k
container: --gpus support #1714
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
Codecov Report
@@ Coverage Diff @@
## master #1714 +/- ##
==========================================
+ Coverage 56.21% 56.38% +0.17%
==========================================
Files 307 308 +1
Lines 21225 21241 +16
==========================================
+ Hits 11931 11977 +46
+ Misses 8427 8390 -37
- Partials 867 874 +7 |
632b386 to
9621d3f
Compare
|
Ping @thaJeztah @vdemeester @cpuguy83 @silvin-lubecki I revendored and it's ready for review. |
|
Looks good to me! |
|
This can be rebased now (moby vendor bump was merged) |
308c073 to
3d2b393
Compare
|
Ping @thaJeztah @silvin-lubecki @vdemeester updated |
thaJeztah
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.
Some nits, notes, and suggestions
Some follow-ups needed to add Bash-completion and reference docs (I know we want to get this in before the release, so I'd be ok with doing that in a follow-up)
opts/gpus.go
Outdated
|
|
||
| // Type returns the type of this option | ||
| func (o *GpuOpts) Type() string { | ||
| return "gpuRequest" |
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.
perhaps gpu-options this is what's shown in --help output; also looks like we don't use camelBack there
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.
I'm putting gpu-request
|
@thaJeztah @silvin-lubecki thank you for the review, i updated the PR accordingly. |
thaJeztah
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.
two more ideas, but LGTM
|
@thaJeztah updated |
thaJeztah
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
vdemeester
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.
SGTM, but @tiborvass can I HAZ tests on gpus.go ? 👼
|
@vdemeester added a couple. The most important one is |
Signed-off-by: Tibor Vass <tibor@docker.com>
vdemeester
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 🐯
Am I right? If yes, this new option is a shame. EDIT: |
|
Hello @mviereck ! The We have plans to make it more like other plugins ( |
|
@RenaudWasTaken Thank you for your friendly response!
I am not experienced in Go, so I cannot contribute code directly, sorry. |
Signed-off-by: Tibor Vass tibor@docker.com
Closes #1200
Dependent on moby/moby#38828
Most common usecase:
docker run --gpus allOtherwise can be further specified:
docker run --gpus 2,driver=nvidia,capabilities=compute