info

package
v1.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// In LegacyRuntimeMode the nvidia-container-runtime injects the
	// nvidia-container-runtime-hook as a prestart hook into the incoming
	// container config. This hook invokes the nvidia-container-cli to perform
	// the required modifications to the container.
	LegacyRuntimeMode = RuntimeMode("legacy")
	// In CSVRuntimeMode the nvidia-container-runtime processes a set of CSV
	// files to determine which container modification are required. The
	// contents of these CSV files are used to generate an in-memory CDI
	// specification which is used to modify the container config.
	CSVRuntimeMode = RuntimeMode("csv")
	// In CDIRuntimeMode the nvidia-container-runtime applies the modifications
	// to the container config required for the requested CDI devices in the
	// same way that other CDI clients would.
	CDIRuntimeMode = RuntimeMode("cdi")
	// In JitCDIRuntimeMode the nvidia-container-runtime generates in-memory CDI
	// specifications for requested NVIDIA devices.
	JitCDIRuntimeMode = RuntimeMode("jit-cdi")
)

Variables

This section is empty.

Functions

func GetVersionParts

func GetVersionParts() []string

GetVersionParts returns the different version components

func GetVersionString

func GetVersionString(more ...string) string

GetVersionString returns the string representation of the version

Types

type Option

type Option func(*modeResolver)

func WithDefaultMode

func WithDefaultMode(defaultMode RuntimeMode) Option

func WithImage

func WithImage(image *image.CUDA) Option

func WithLogger

func WithLogger(logger logger.Interface) Option

func WithPropertyExtractor

func WithPropertyExtractor(propertyExtractor info.PropertyExtractor) Option

type RuntimeMode

type RuntimeMode string

A RuntimeMode is used to select a specific mode of operation for the NVIDIA Container Runtime.

func ResolveAutoMode

func ResolveAutoMode(logger logger.Interface, mode string, image image.CUDA) (rmode RuntimeMode)

ResolveAutoMode determines the correct mode for the platform if set to "auto"

type RuntimeModeResolver

type RuntimeModeResolver interface {
	ResolveRuntimeMode(string) RuntimeMode
}

func NewRuntimeModeResolver

func NewRuntimeModeResolver(opts ...Option) RuntimeModeResolver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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