legacy

package
v0.46.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package legacy provides support for using GPU & vGPU devices through a specific (external) device plugin: https://github.com/NVIDIA/kubevirt-gpu-device-plugin The DP passes GPU &vGPU devices by setting env variables in the virt-launcher pod.

This method of defining GPU/vGPU devices is considered legacy, prefer using the in-spec VMI definitions instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGPUHostDevices

func CreateGPUHostDevices() ([]api.HostDevice, error)

func CreateGPUHostDevicesFromPool

func CreateGPUHostDevicesFromPool(pool addressPool) ([]api.HostDevice, error)

func CreateVGPUHostDevices

func CreateVGPUHostDevices() ([]api.HostDevice, error)

func CreateVGPUHostDevicesFromPool

func CreateVGPUHostDevicesFromPool(pool addressPool) ([]api.HostDevice, error)

Types

type AddressPool

type AddressPool struct {
	// contains filtered or unexported fields
}

func NewGPUPCIAddressPool

func NewGPUPCIAddressPool() *AddressPool

NewGPUPCIAddressPool creates a PCI address pool from the environment variables that describe the GPU devices.

func NewVGPUMdevAddressPool

func NewVGPUMdevAddressPool() *AddressPool

NewVGPUMdevAddressPool creates a PCI address pool from the environment variables that describe the vGPU devices.

func (*AddressPool) Len

func (p *AddressPool) Len() int

func (*AddressPool) Pop

func (p *AddressPool) Pop() (string, error)

type CreateHostDevice

type CreateHostDevice func(string) (*api.HostDevice, error)

Jump to

Keyboard shortcuts

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