Documentation
¶
Index ¶
Constants ¶
View Source
const ( SHARED_ACCESS accessibility = iota EXCLUSIVE_ACCESS )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// Initialize GPU Tracker
Init() error
// Enable GPU Tracker
Enable() error
// Disable GPU Tracker
Disable() error
// Reset GPU Tracker
Reset() error
// Show GPUs Status
ShowStatus() error
// Make specified GPUs exclusive such that they can be used
// by at most one container at any instance
MakeGPUsExclusive(gpus string) error
// by any number of containers at any instance
MakeGPUsShared(gpus string) error
// Reserve GPUs for a container
ReserveGPUs(gpus string, containerId string) ([]int, error)
// Release all GPUs linked to a container
ReleaseGPUs(containerId string) error
}
Interface for GPU Tracker package
Click to show internal directories.
Click to hide internal directories.