nvidia

package
v4.2.458+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GpuMetricUsedMap = map[DatahubMetric.GpuMetricType]bool{}

Functions

This section is empty.

Types

type Gpu

type Gpu struct {
	Name     string
	Uuid     string
	Metadata GpuMetadata
	Spec     GpuSpec
}

func NewGpu

func NewGpu() *Gpu

type GpuDAO

type GpuDAO interface {
	ListGpus(host, minorNumber string, condition *DBCommon.QueryCondition) ([]*Gpu, error)
}

type GpuMetadata

type GpuMetadata struct {
	Host        string
	Instance    string
	Job         string
	MinorNumber string
}

type GpuMetric

type GpuMetric struct {
	Gpu
	Metrics map[DatahubMetric.GpuMetricType][]DatahubMetric.Sample
}

func NewGpuMetric

func NewGpuMetric() *GpuMetric

type GpuMetricMap

type GpuMetricMap map[string]*GpuMetric

func NewGpuMetricMap

func NewGpuMetricMap() GpuMetricMap

func (*GpuMetricMap) AddGpuMetric

func (p *GpuMetricMap) AddGpuMetric(gpu *Gpu, metricType DatahubMetric.GpuMetricType, sample DatahubMetric.Sample)

type GpuPrediction

type GpuPrediction struct {
	Gpu
	Granularity  int64
	ModelId      string
	PredictionId string
	Metrics      []DatahubMetric.Sample
}

func NewGpuPrediction

func NewGpuPrediction() *GpuPrediction

type GpuPredictionMap

type GpuPredictionMap map[DatahubMetric.GpuMetricType][]*GpuPrediction

func NewGpuPredictionMap

func NewGpuPredictionMap() GpuPredictionMap

func (*GpuPredictionMap) AddGpuPrediction

func (p *GpuPredictionMap) AddGpuPrediction(gpu *Gpu, granularity int64, modelId, predictionId string, metricType DatahubMetric.GpuMetricType, sample DatahubMetric.Sample)

type GpuSpec

type GpuSpec struct {
	MemoryTotal float32
}

type MetricsDAO

type MetricsDAO interface {
	ListMetrics(host, minorNumber string, condition *DBCommon.QueryCondition) (GpuMetricMap, error)
}

type PredictionsDAO

type PredictionsDAO interface {
	CreatePredictions(GpuPredictionMap) error
	ListPredictions(host, minorNumber, granularity string, condition *DBCommon.QueryCondition) (GpuPredictionMap, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL