Versions in this module Expand all Collapse all v0 v0.8.0 Aug 20, 2025 Changes in this version + const AttributeGraphics + const AttributeMediaExtensionsAll type Device + IsCoherent func() (bool, error) type MigProfileInfo + NegAttributes []string v0.7.3 Jun 10, 2025 v0.7.2 May 13, 2025 v0.7.1 Feb 12, 2025 v0.7.0 Sep 28, 2024 Changes in this version type Device + IsFabricAttached func() (bool, error) v0.6.1 Jul 16, 2024 v0.6.0 Jun 17, 2024 Changes in this version type Device + GetPCIBusID func() (string, error) v0.5.0 May 27, 2024 v0.4.0 May 21, 2024 v0.3.1 May 14, 2024 v0.3.0 Apr 13, 2024 v0.2.0 Mar 15, 2024 v0.1.1 Mar 12, 2024 v0.1.0 Mar 11, 2024 Changes in this version + const AttributeMediaExtensions + type Device interface + GetArchitectureAsString func() (string, error) + GetBrandAsString func() (string, error) + GetCudaComputeCapabilityAsString func() (string, error) + GetMigDevices func() ([]MigDevice, error) + GetMigProfiles func() ([]MigProfile, error) + IsMigCapable func() (bool, error) + IsMigEnabled func() (bool, error) + VisitMigDevices func(func(j int, m MigDevice) error) error + VisitMigProfiles func(func(p MigProfile) error) error + type Identifier string + func (i Identifier) IsGpuIndex() bool + func (i Identifier) IsGpuUUID() bool + func (i Identifier) IsMigIndex() bool + func (i Identifier) IsMigUUID() bool + func (i Identifier) IsUUID() bool + type Interface interface + AssertValidMigProfileFormat func(profile string) error + GetDevices func() ([]Device, error) + GetMigDevices func() ([]MigDevice, error) + GetMigProfiles func() ([]MigProfile, error) + NewDevice func(d nvml.Device) (Device, error) + NewDeviceByUUID func(uuid string) (Device, error) + NewMigDevice func(d nvml.Device) (MigDevice, error) + NewMigDeviceByUUID func(uuid string) (MigDevice, error) + NewMigProfile func(giProfileID, ciProfileID, ciEngProfileID int, ...) (MigProfile, error) + ParseMigProfile func(profile string) (MigProfile, error) + VisitDevices func(func(i int, d Device) error) error + VisitMigDevices func(func(i int, d Device, j int, m MigDevice) error) error + VisitMigProfiles func(func(p MigProfile) error) error + func New(opts ...Option) Interface + type MigDevice interface + GetProfile func() (MigProfile, error) + type MigProfile interface + Equals func(other MigProfile) bool + GetInfo func() MigProfileInfo + Matches func(profile string) bool + String func() string + type MigProfileInfo struct + Attributes []string + C int + CIEngProfileID int + CIProfileID int + G int + GB int + GIProfileID int + func (p MigProfileInfo) Equals(other MigProfile) bool + func (p MigProfileInfo) GetInfo() MigProfileInfo + func (p MigProfileInfo) Matches(profile string) bool + func (p MigProfileInfo) String() string + type Option func(*devicelib) + func WithNvml(nvml nvml.Interface) Option + func WithSkippedDevices(names ...string) Option + func WithVerifySymbols(verify bool) Option