Documentation ¶
Overview ¶
Package memory tracks the NVIDIA per-GPU memory usage.
Index ¶
Constants ¶
View Source
const ( StateNameMemoryUsage = "memory_usage" StateKeyMemoryUsageData = "data" StateKeyMemoryUsageEncoding = "encoding" StateValueMemoryUsageEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-memory"
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.ParsedMemoryUsage `json:"usages_smi"` UsagesNVML []nvidia_query_nvml.Memory `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.