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 ¶
- func CreateGPUHostDevices() ([]api.HostDevice, error)
- func CreateGPUHostDevicesFromPool(pool addressPool) ([]api.HostDevice, error)
- func CreateVGPUHostDevices() ([]api.HostDevice, error)
- func CreateVGPUHostDevicesFromPool(pool addressPool) ([]api.HostDevice, error)
- type AddressPool
- type CreateHostDevice
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)
Click to show internal directories.
Click to hide internal directories.