Documentation ¶
Overview ¶
Package power tracks the NVIDIA per-GPU power usage.
Index ¶
Constants ¶
View Source
const ( StateNamePowerUsage = "power_usage" StateKeyPowerUsageData = "data" StateKeyPowerUsageEncoding = "encoding" StateValuePowerUsageEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-power"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { UsagesSMI []nvidia_query.ParsedSMIPowerReading `json:"usages_smi"` UsagesNVML []nvidia_query_nvml.Power `json:"usages_nvml"` }
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func ToOutput ¶
func ToOutput(i *nvidia_query.Output) *Output
Click to show internal directories.
Click to hide internal directories.