cdi

package
v0.0.0-...-d44f63b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCDISpec

func CreateCDISpec(claimUID string, gpus []*GPUDevice) error

func DeleteCDISpec

func DeleteCDISpec(claimUID string) error

func DeviceQualifiedName

func DeviceQualifiedName(gpu *GPUDevice) string

func InitRegistryOnce

func InitRegistryOnce(cdiRoot string)

func Specs

func Specs() ([]*cdiapi.Spec, error)

Types

type GPUDevice

type GPUDevice struct {
	UUID        string
	ProductName string
	VendorName  string
}

GPUDevice is used to encapsulate the CDI information of a GPU device.

func DiscoverFromSpecs

func DiscoverFromSpecs() ([]*GPUDevice, error)

Jump to

Keyboard shortcuts

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