gpu

package
v1.10.5-lite1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPUManager

type GPUManager interface {
	// Start logically initializes GPUManager
	Start() error
	// Capacity returns the total number of GPUs on the node.
	Capacity() v1.ResourceList
	// AllocateGPU attempts to allocate GPUs for input container.
	// Returns paths to allocated GPUs and nil on success.
	// Returns an error on failure.
	AllocateGPU(*v1.Pod, *v1.Container) ([]string, error)
}

GPUManager manages GPUs on a local node. Implementations are expected to be thread safe.

func NewGPUManagerStub

func NewGPUManagerStub() GPUManager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL