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 NewNvmlMigModeManager ¶
func NewNvmlMigModeManager() Manager
func NewPciMigModeManager ¶
func NewPciMigModeManager() Manager
Click to show internal directories.
Click to hide internal directories.