# Functions
New creates a new nvcdi library.
NewDeviceNamer creates a Device Namer based on the supplied strategy.
NewDriverBinariesDiscoverer creates a discoverer for GSP firmware associated with the GPU driver.
NewDriverFirmwareDiscoverer creates a discoverer for GSP firmware associated with the specified driver version.
WithClass sets the class for the library.
WithConfigSearchPaths sets the search paths for config files.
WithCSVFiles sets the CSV files for the library.
WithCSVIgnorePatterns sets the ignore patterns for entries in the CSV files.
WithDeviceLib sets the device library for the library.
WithDeviceNamers sets the device namer for the library.
WithDevRoot sets the root where /dev is located.
WithDisabledHook allows specific hooks to the disabled.
WithDriverRoot sets the driver root for the library.
WithInfoLib sets the info library for CDI spec generation.
WithLdconfigPath sets the path to the ldconfig program.
WithLibrarySearchPaths sets the library search paths.
WithLogger sets the logger for the library.
WithMergedDeviceOptions sets the merged device options for the library If these are not set, no merged device will be generated.
WithMode sets the discovery mode for the library.
WithNVIDIACDIHookPath sets the path to the NVIDIA Container Toolkit CLI path for the library.
WithNVIDIACTKPath sets the path to the NVIDIA Container Toolkit CLI path for the library
Deprecated: Use WithNVIDIACDIHookPath instead.
WithNvmlLib sets the nvml library for the library.
WithVendor sets the vendor for the library.
# Constants
DeviceNameStrategyIndex generates devices names such as 0 or 1:0.
DeviceNameStrategyTypeIndex generates devices names such as gpu0 or mig1:0.
DeviceNameStrategyUUID uses the device UUID as the name.
HookEnableCudaCompat refers to the hook used to enable CUDA Forward Compatibility.
ModeAuto configures the CDI spec generator to automatically detect the system configuration.
ModeCSV configures the CDI spec generator to generate a spec based on the contents of CSV mountspec files.
ModeGds configures the CDI spec generator to generate a GDS spec.
ModeManagement configures the CDI spec generator to generate a management spec.
ModeMofed configures the CDI spec generator to generate a MOFED spec.
ModeNvml configures the CDI spec generator to use the NVML library.
ModeWsl configures the CDI spec generator to generate a WSL spec.
# Interfaces
DeviceNamer is an interface for getting device names.
Interface defines the API for the nvcdi package.
UUIDer is an interface for getting UUIDs.
# Type aliases
DeviceNamers represents a list of device namers.
A HookName refers to one of the predefined set of CDI hooks that may be included in the generated CDI specification.
Option is a function that configures the nvcdilib.