package gpu
import "k8s.io/kubernetes/pkg/kubelet/gpu"
Index ¶
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
Source Files ¶
gpu_manager_stub.go types.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubelet/gpu/nvidia |
- Version
- v1.7.4
- Published
- Aug 17, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 22 seconds ago –
Tools for package owners.