dgpu

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 9 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.

func NewForMigDevice

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

NewForDevice creates a discoverer for the specified device and its associated MIG device.

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 WithNVIDIACDIHookPath

func WithNVIDIACDIHookPath(path string) Option

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

Jump to

Keyboard shortcuts

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