dgpu

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 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 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 WithNVIDIACDIHookPath

func WithNVIDIACDIHookPath(path string) Option

WithNVIDIACDIHookPath sets the path to the NVIDIA Container Toolkit CLI path for the library

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