Documentation
¶
Overview ¶
Package gpucounts monitors the GPU count of the system. Optional, enabled if the host has NVIDIA GPUs.
Index ¶
Constants ¶
View Source
const ( Name = "accelerator-nvidia-gpu-counts" EventNameMisMatch = "gpu-count-mismatch" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(gpudInstance *components.GPUdInstance) (components.Component, error)
func SetDefaultExpectedGPUCounts ¶
func SetDefaultExpectedGPUCounts(cnt ExpectedGPUCounts)
Types ¶
type ExpectedGPUCounts ¶
type ExpectedGPUCounts struct {
// Count is the expected number of GPU devices.
// If not set, it defaults to 0.
Count int `json:"count"`
}
ExpectedGPUCounts configures the expected number of GPUs.
func GetDefaultExpectedGPUCounts ¶
func GetDefaultExpectedGPUCounts() ExpectedGPUCounts
func (*ExpectedGPUCounts) IsZero ¶
func (ec *ExpectedGPUCounts) IsZero() bool
IsZero returns true if the expected GPU counts are not set.
Click to show internal directories.
Click to hide internal directories.