Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForDevice ¶
NewForDevice creates a discoverer for the specified Device. nvsandboxutils is used for discovery if specified, otherwise NVML is used.
Types ¶
type Option ¶
type Option func(*options)
func WithDevRoot ¶
WithDevRoot sets the root where /dev is located.
func WithLogger ¶
WithLogger sets the logger for the library
func WithMIGCaps ¶ added in v1.16.2
WithMIGCaps sets the MIG capabilities.
func WithNVIDIACDIHookPath ¶
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.
Click to show internal directories.
Click to hide internal directories.