Documentation
¶
Index ¶
- Variables
- type GpuNodeCache
- func (gnc *GpuNodeCache) CheckNodeHealth(node string) (exist, health bool)
- func (gnc *GpuNodeCache) DumpNodeGpuInfo() string
- func (gnc *GpuNodeCache) GetDeviceInUse(node string) (value sets.String)
- func (gnc *GpuNodeCache) GetFreeDeviceByModel(node, model string) (value sets.String)
- func (gnc *GpuNodeCache) SetGpuNode(node string, value *resourcesschedulerv1.GpuNode)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGpuNodeCache = NewGpuNodeCache()
Functions ¶
This section is empty.
Types ¶
type GpuNodeCache ¶
GpuNodeCache to store gpu info from all nodes.
func NewGpuNodeCache ¶
func NewGpuNodeCache() *GpuNodeCache
func (*GpuNodeCache) CheckNodeHealth ¶
func (gnc *GpuNodeCache) CheckNodeHealth(node string) (exist, health bool)
func (*GpuNodeCache) DumpNodeGpuInfo ¶
func (gnc *GpuNodeCache) DumpNodeGpuInfo() string
func (*GpuNodeCache) GetDeviceInUse ¶
func (gnc *GpuNodeCache) GetDeviceInUse(node string) (value sets.String)
func (*GpuNodeCache) GetFreeDeviceByModel ¶
func (gnc *GpuNodeCache) GetFreeDeviceByModel(node, model string) (value sets.String)
GetFreeDeviceByModel gets the free gpu device set by model type.
func (*GpuNodeCache) SetGpuNode ¶
func (gnc *GpuNodeCache) SetGpuNode(node string, value *resourcesschedulerv1.GpuNode)
Click to show internal directories.
Click to hide internal directories.