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
Click to show internal directories.
Click to hide internal directories.