mode

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Disabled = mig.Disabled
	Enabled  = mig.Enabled
)
View Source
const (
	PmcIDReg = 0

	BootCompleteReg   = 0x118234
	BootCompleteValue = uint32(0x03FF)

	MigModeCheckReg     = 0x1404
	MigModeCheckEnabled = uint32(0x8000) // Bits 13:15 100

	MigModeSetReg      = 0x118F78
	MigModeSetMask     = uint32(0xC000) // Bits 14:15 11
	MigModeSetEnabled  = uint32(0xC000) // Bits 14:15 11
	MigModeSetDisabled = uint32(0x8000) // Bits 14:15 10

	WaitForBootTimeout       = 5 * time.Second
	WaitForBootSleepInterval = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	IsMigCapable(gpu int) (bool, error)
	GetMigMode(gpu int) (MigMode, error)
	SetMigMode(gpu int, mode MigMode) error
	IsMigModeChangePending(gpu int) (bool, error)
}

func NewMockNvmlMigModeManager added in v0.4.0

func NewMockNvmlMigModeManager(nvml nvml.Interface) Manager

func NewNvmlMigModeManager

func NewNvmlMigModeManager() Manager

func NewPciMigModeManager

func NewPciMigModeManager() Manager

type MigMode

type MigMode = mig.Mode

Jump to

Keyboard shortcuts

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