discovery

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoProfilesDiscovered = errors.New("no MIG profiles discovered for MIG-capable GPUs")

ErrNoProfilesDiscovered indicates MIG-capable GPUs were found but no profiles could be discovered.

Functions

This section is empty.

Types

type DeviceProfiles

type DeviceProfiles map[int][]ProfileInfo

DeviceProfiles maps device index to its discovered profiles

func DiscoverMIGProfiles

func DiscoverMIGProfiles() (DeviceProfiles, error)

DiscoverMIGProfiles discovers all MIG profiles on the system. Returns map[deviceIndex][]ProfileInfo for all MIG-capable devices.

type ProfileInfo

type ProfileInfo struct {
	Name     string           // Profile name (e.g., "1g.10gb", "2g.20gb")
	MaxCount int              // Maximum instance count for this profile
	DeviceID types.DeviceID   // Device ID where this profile was discovered
	Profile  nvdev.MigProfile // The underlying MIG profile object
}

ProfileInfo represents a discovered MIG profile with its metadata

Jump to

Keyboard shortcuts

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