mig

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	nvml.Device
}

func (Device) AssertMigEnabled

func (device Device) AssertMigEnabled() error

func (Device) WalkGpuInstances

func (device Device) WalkGpuInstances(f func(nvml.GpuInstance, int, nvml.GpuInstanceProfileInfo) error) error

type GpuInstance

type GpuInstance struct {
	nvml.GpuInstance
}

func (GpuInstance) WalkComputeInstances

func (gi GpuInstance) WalkComputeInstances(f func(ci nvml.ComputeInstance, ciProfileId int, ciEngProfileId int, ciProfileInfo nvml.ComputeInstanceProfileInfo) error) error

type Interface

type Interface struct {
	// contains filtered or unexported fields
}

func New

func New() Interface

func NewMock

func NewMock(nvml nvml.Interface) Interface

func (Interface) Device

func (I Interface) Device(d nvml.Device) Device

func (Interface) GpuInstance

func (I Interface) GpuInstance(gi nvml.GpuInstance) GpuInstance

type Mode

type Mode int
const (
	Disabled Mode = 0
	Enabled  Mode = 1
)

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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