Documentation
¶
Index ¶
- func GetDeviceFolderPermissionHookEdits(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (*cdi.ContainerEdits, error)
- func MergeDeviceSpecs(deviceSpecs []specs.Device, mergedDeviceName string) (specs.Device, error)
- func NewCommand(logger *logrus.Logger) *cli.Command
- func NewDeviceFolderPermissionHookDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, ...) (discover.Discover, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceFolderPermissionHookEdits ¶
func GetDeviceFolderPermissionHookEdits(logger *logrus.Logger, driverRoot string, nvidiaCTKPath string, deviceSpecs []specs.Device) (*cdi.ContainerEdits, error)
GetDeviceFolderPermissionHookEdits gets the edits required for device folder permissions discoverer
func MergeDeviceSpecs ¶ added in v1.13.0
MergeDeviceSpecs creates a device with the specified name which combines the edits from the previous devices. If a device of the specified name already exists, an error is returned.
func NewCommand ¶
NewCommand constructs a generate-cdi command with the specified logger
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/*
Types ¶
This section is empty.