generate

package
v1.12.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(logger *logrus.Logger) *cli.Command

NewCommand constructs a generate-cdi command with the specified logger

func NewCommonDiscoverer

func NewCommonDiscoverer(logger *logrus.Logger, root 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, root 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

func NewDriverBinariesDiscoverer(logger *logrus.Logger, root string) discover.Discover

NewDriverBinariesDiscoverer creates a discoverer for GSP firmware associated with the GPU driver.

func NewDriverDiscoverer

func NewDriverDiscoverer(logger *logrus.Logger, root 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, root 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, root 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, root string, nvidiaCTKPath string, d device.Device) (discover.Discover, error)

NewFullGPUDiscoverer creates a discoverer for the full GPU defined by the specified device.

func NewIPCDiscoverer

func NewIPCDiscoverer(logger *logrus.Logger, root string) (discover.Discover, error)

NewIPCDiscoverer creats a discoverer for NVIDIA IPC sockets.

func NewMigDeviceDiscoverer

func NewMigDeviceDiscoverer(logger *logrus.Logger, root string, parent device.Device, d device.MigDevice) (discover.Discover, error)

NewMigDeviceDiscoverer creates a discoverer for the specified mig device and its parent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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