mig

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceManager

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

DeviceManager performs various management operations on mig devices.

func NewDeviceManager

func NewDeviceManager(devDirectory, procDirectory string) DeviceManager

NewDeviceManager creates a new DeviceManager to handle MIG devices on the node.

func (*DeviceManager) DeviceSpec

func (d *DeviceManager) DeviceSpec(deviceID string) ([]pluginapi.DeviceSpec, error)

DeviceSpec returns the device spec that inclues list of devices to allocate for a deviceID.

func (*DeviceManager) ListGPUPartitionDevices

func (d *DeviceManager) ListGPUPartitionDevices() map[string]pluginapi.Device

ListGPUPartitionDevices lists all the GPU partitions as devices that can be advertised as resources available on the node.

func (*DeviceManager) SetDeviceHealth

func (d *DeviceManager) SetDeviceHealth(name string, health string)

SetDeviceHealth sets the health status for a GPU partition

func (*DeviceManager) Start

func (d *DeviceManager) Start(partitionSize string) error

Start method performs the necessary initializations and starts the mig.DeviceManager.

Jump to

Keyboard shortcuts

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