nvidia

package
v0.0.0-...-26a240f Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ******************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	// contains filtered or unexported methods
}

Action provides interface to start execution of a command

type Count

type Count struct {
}

Count implements one flavour of GPUCount interface.

type GPUCount

type GPUCount interface {
	// contains filtered or unexported methods
}

GPUCount provides interface to get gpu count command and run it.

type GPUMetrics

type GPUMetrics interface {
	GetMetrics(env string, query string) ([]common.MapStr, error)
}

GPUMetrics provides slice of metrics passed as argument for a given environment

type GPUUtilization

type GPUUtilization interface {
	// contains filtered or unexported methods
}

GPUUtilization provides interface to utilization metrics and state of GPU.

type Local

type Local struct {
}

Local implements one flavour of Action interface.

func NewLocal

func NewLocal() Local

NewLocal returns instance of Local

type Metrics

type Metrics struct {
}

Metrics implements one flavour of GPUMetrics interface.

func NewMetrics

func NewMetrics() Metrics

NewMetrics returns instance of Metrics

func (Metrics) Get

func (m Metrics) Get(env string, query string) ([]common.MapStr, error)

Get return a slice of GPU metrics

type Utilization

type Utilization struct {
}

Utilization implements one flavour of GPUCount interface.

Jump to

Keyboard shortcuts

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