manager

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device added in v0.3.0

type Device struct {
	GPU *GPUDevice
	MIG *MIGDevice
}

type DeviceManager

type DeviceManager struct {
	*nvidia.DeviceLib
	// contains filtered or unexported fields
}

func NewDeviceManager

func NewDeviceManager(config *node.NodeConfig, kubeClient *kubernetes.Clientset) (*DeviceManager, error)

func NewFakeDeviceManager

func NewFakeDeviceManager(config *node.NodeConfig, version nvidia.DriverVersion, devices []*Device) *DeviceManager

func (*DeviceManager) AddNotifyChannel

func (m *DeviceManager) AddNotifyChannel(name string, ch chan *Device)

func (*DeviceManager) GetDeviceInfoMap added in v0.3.0

func (m *DeviceManager) GetDeviceInfoMap() map[string]device.DeviceInfo

func (*DeviceManager) GetDriverVersion added in v0.3.0

func (m *DeviceManager) GetDriverVersion() nvidia.DriverVersion

func (*DeviceManager) GetGPUDeviceMap added in v0.3.0

func (m *DeviceManager) GetGPUDeviceMap() map[string]GPUDevice

func (*DeviceManager) GetMIGDeviceMap added in v0.3.0

func (m *DeviceManager) GetMIGDeviceMap() map[string]MIGDevice

func (*DeviceManager) GetNodeConfig

func (m *DeviceManager) GetNodeConfig() node.NodeConfig

func (*DeviceManager) GetNodeDeviceInfo added in v0.3.0

func (m *DeviceManager) GetNodeDeviceInfo() device.NodeDeviceInfo

func (*DeviceManager) RemoveNotifyChannel

func (m *DeviceManager) RemoveNotifyChannel(name string)

func (*DeviceManager) Start

func (m *DeviceManager) Start()

func (*DeviceManager) Stop

func (m *DeviceManager) Stop()

type GPUDevice

type GPUDevice struct {
	*nvidia.GpuInfo
	NumaNode int
	Paths    []string
	Healthy  bool
	Links    map[int][]links.P2PLinkType
}

type MIGDevice added in v0.3.0

type MIGDevice struct {
	*nvidia.MigInfo
	Paths   []string
	Healthy bool
}

Jump to

Keyboard shortcuts

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