Documentation
¶
Index ¶
- func NewCommand(logger *logrus.Logger) *cli.Command
- func NewCommonDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (discover.Discover, error)
- func NewDeviceFolderPermissionHookDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (discover.Discover, error)
- func NewDriverBinariesDiscoverer(logger *logrus.Logger, driverRoot string) discover.Discover
- func NewDriverDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (discover.Discover, error)
- func NewDriverFirmwareDiscoverer(logger *logrus.Logger, driverRoot string, version string) discover.Discover
- func NewDriverLibraryDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, version string) (discover.Discover, error)
- func NewFullGPUDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (discover.Discover, error)
- func NewIPCDiscoverer(logger *logrus.Logger, driverRoot string) (discover.Discover, error)
- func NewMigDeviceDiscoverer(logger *logrus.Logger, driverRoot string, parent device.Device, ...) (discover.Discover, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand constructs a generate-cdi command with the specified logger
func NewCommonDiscoverer ¶
func NewCommonDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, nvmllib nvml.Interface) (discover.Discover, error)
NewCommonDiscoverer returns a discoverer for entities that are not associated with a specific CDI device. This includes driver libraries and meta devices, for example.
func NewDeviceFolderPermissionHookDiscoverer ¶
func NewDeviceFolderPermissionHookDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, deviceSpecs []specs.Device) (discover.Discover, error)
NewDeviceFolderPermissionHookDiscoverer creates a discoverer that can be used to update the permissions for the parent folders of nested device nodes from the specified set of device specs. This works around an issue with rootless podman when using crun as a low-level runtime. See https://github.com/containers/crun/issues/1047 The nested devices that are applicable to the NVIDIA GPU devices are:
- DRM devices at /dev/dri/*
- NVIDIA Caps devices at /dev/nvidia-caps/*
func NewDriverBinariesDiscoverer ¶
NewDriverBinariesDiscoverer creates a discoverer for GSP firmware associated with the GPU driver.
func NewDriverDiscoverer ¶
func NewDriverDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, nvmllib nvml.Interface) (discover.Discover, error)
NewDriverDiscoverer creates a discoverer for the libraries and binaries associated with a driver installation. The supplied NVML Library is used to query the expected driver version.
func NewDriverFirmwareDiscoverer ¶
func NewDriverFirmwareDiscoverer(logger *logrus.Logger, driverRoot string, version string) discover.Discover
NewDriverFirmwareDiscoverer creates a discoverer for GSP firmware associated with the specified driver version.
func NewDriverLibraryDiscoverer ¶
func NewDriverLibraryDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, version string) (discover.Discover, error)
NewDriverLibraryDiscoverer creates a discoverer for the libraries associated with the specified driver version.
func NewFullGPUDiscoverer ¶
func NewFullGPUDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, d device.Device) (discover.Discover, error)
NewFullGPUDiscoverer creates a discoverer for the full GPU defined by the specified device.
func NewIPCDiscoverer ¶
NewIPCDiscoverer creats a discoverer for NVIDIA IPC sockets.
Types ¶
This section is empty.