dgpu

package
v1.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForDevice

func NewForDevice(d device.Device, opts ...Option) (discover.Discover, error)

NewForDevice creates a discoverer for the specified Device. nvsandboxutils is used for discovery if specified, otherwise NVML is used.

func NewForMigDevice

func NewForMigDevice(d device.Device, mig device.MigDevice, opts ...Option) (discover.Discover, error)

NewForMigDevice creates a discoverer for the specified device and its associated MIG device. nvsandboxutils is used for discovery if specified, otherwise NVML is used.

Types

type Option

type Option func(*options)

func WithDevRoot

func WithDevRoot(root string) Option

WithDevRoot sets the root where /dev is located.

func WithHookCreator

func WithHookCreator(hookCreator discover.HookCreator) Option

WithHookCreator sets the hook creator for the library

func WithLogger

func WithLogger(logger logger.Interface) Option

WithLogger sets the logger for the library

func WithMIGCaps added in v1.16.2

func WithMIGCaps(migCaps nvcaps.MigCaps) Option

WithMIGCaps sets the MIG capabilities.

func WithNvsandboxuitilsLib added in v1.17.0

func WithNvsandboxuitilsLib(nvsandboxutilslib nvsandboxutils.Interface) Option

WithNvsandboxuitilsLib sets the nvsandboxutils library implementation.

type UUIDer added in v1.17.0

type UUIDer interface {
	GetUUID() (string, nvml.Return)
}

Jump to

Keyboard shortcuts

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