Documentation ¶
Index ¶
- Constants
- func CreateHostDevices(vmiGPUs []v1.GPU) ([]api.HostDevice, error)
- func CreateHostDevicesFromPools(vmiGPUs []v1.GPU, pciAddressPool, mdevAddressPool hostdevice.AddressPooler) ([]api.HostDevice, error)
- func NewMDEVAddressPool(gpuDevices []v1.GPU) *hostdevice.AddressPool
- func NewPCIAddressPool(gpuDevices []v1.GPU) *hostdevice.AddressPool
Constants ¶
View Source
const ( AliasPrefix = "gpu-" DefaultDisplayOn = true )
Variables ¶
This section is empty.
Functions ¶
func CreateHostDevices ¶
func CreateHostDevices(vmiGPUs []v1.GPU) ([]api.HostDevice, error)
func CreateHostDevicesFromPools ¶
func CreateHostDevicesFromPools(vmiGPUs []v1.GPU, pciAddressPool, mdevAddressPool hostdevice.AddressPooler) ([]api.HostDevice, error)
func NewMDEVAddressPool ¶
func NewMDEVAddressPool(gpuDevices []v1.GPU) *hostdevice.AddressPool
NewMDEVAddressPool creates a MDEV address pool based on the provided list of host-devices and the environment variables that describe the resource.
func NewPCIAddressPool ¶
func NewPCIAddressPool(gpuDevices []v1.GPU) *hostdevice.AddressPool
NewPCIAddressPool creates a PCI address pool based on the provided list of host-devices and the environment variables that describe the resource.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.