mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add DeviceRequests to HostConfig to support NVIDIA GPUs
This patch hard-codes support for NVIDIA GPUs. In a future patch it should move out into its own Device Plugin. Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
36d2c8b48e
commit
8f936ae8cf
10 changed files with 529 additions and 8 deletions
|
|
@ -80,6 +80,17 @@ func (e invalidIdentifier) Error() string {
|
|||
|
||||
func (invalidIdentifier) InvalidParameter() {}
|
||||
|
||||
type incompatibleDeviceRequest struct {
|
||||
driver string
|
||||
caps [][]string
|
||||
}
|
||||
|
||||
func (i incompatibleDeviceRequest) Error() string {
|
||||
return fmt.Sprintf("could not select device driver %q with capabilities: %v", i.driver, i.caps)
|
||||
}
|
||||
|
||||
func (incompatibleDeviceRequest) InvalidParameter() {}
|
||||
|
||||
type duplicateMountPointError string
|
||||
|
||||
func (e duplicateMountPointError) Error() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue