generate

package
v1.13.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

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

func MergeDeviceSpecs(deviceSpecs []specs.Device, mergedDeviceName string) (specs.Device, error)

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

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

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.

Jump to

Keyboard shortcuts

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