Documentation ¶
Overview ¶
Package clock monitors NVIDIA GPU clock events of all GPUs, such as HW Slowdown events
Index ¶
Constants ¶
View Source
const ( StateNameHWSlowdown = "hw_slowdown" StateKeyHWSlowdownData = "data" StateKeyHWSlowdownEncoding = "encoding" StateValueHWSlowdownEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-clock"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type HWSlowdownSMI ¶
type HWSlowdownSMI struct {
Errors []string `json:"errors"`
}
type Output ¶
type Output struct { HWSlowdownSMI HWSlowdownSMI `json:"hw_slowdown_smi"` ClockEventsNVML []nvidia_query_nvml.ClockEvents `json:"clock_events_nvml"` }
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func ToOutput ¶
func ToOutput(i *nvidia_query.Output) *Output
ToOutput converts nvidia_query.Output to Output. It returns an empty non-nil object, if the input or the required field is nil (e.g., i.SMI).
Click to show internal directories.
Click to hide internal directories.