Documentation
¶
Index ¶
- Constants
- func NewGPUDevicePlugin(base *baseplugin.BasePlugin) customdeviceplugin.CustomDevicePlugin
- type GPUDevicePlugin
- func (p *GPUDevicePlugin) AllocateAssociatedDevice(ctx context.Context, resReq *pluginapi.ResourceRequest, ...) (*pluginapi.AssociatedDeviceAllocationResponse, error)
- func (p *GPUDevicePlugin) DefaultPreAllocateResourceName() string
- func (p *GPUDevicePlugin) DeviceNames() []string
- func (p *GPUDevicePlugin) GetAssociatedDeviceTopologyHints(context.Context, *pluginapi.AssociatedDeviceRequest) (*pluginapi.AssociatedDeviceHintsResponse, error)
- func (p *GPUDevicePlugin) UpdateAllocatableAssociatedDevices(ctx context.Context, ...) (*pluginapi.UpdateAllocatableAssociatedDevicesResponse, error)
Constants ¶
View Source
const GPUCustomDevicePluginName = "gpu-custom-device-plugin"
Variables ¶
This section is empty.
Functions ¶
func NewGPUDevicePlugin ¶
func NewGPUDevicePlugin(base *baseplugin.BasePlugin) customdeviceplugin.CustomDevicePlugin
Types ¶
type GPUDevicePlugin ¶
type GPUDevicePlugin struct {
*baseplugin.BasePlugin
// contains filtered or unexported fields
}
func (*GPUDevicePlugin) AllocateAssociatedDevice ¶
func (p *GPUDevicePlugin) AllocateAssociatedDevice( ctx context.Context, resReq *pluginapi.ResourceRequest, deviceReq *pluginapi.DeviceRequest, _ string, ) (*pluginapi.AssociatedDeviceAllocationResponse, error)
func (*GPUDevicePlugin) DefaultPreAllocateResourceName ¶
func (p *GPUDevicePlugin) DefaultPreAllocateResourceName() string
func (*GPUDevicePlugin) DeviceNames ¶
func (p *GPUDevicePlugin) DeviceNames() []string
func (*GPUDevicePlugin) GetAssociatedDeviceTopologyHints ¶
func (p *GPUDevicePlugin) GetAssociatedDeviceTopologyHints( context.Context, *pluginapi.AssociatedDeviceRequest, ) (*pluginapi.AssociatedDeviceHintsResponse, error)
func (*GPUDevicePlugin) UpdateAllocatableAssociatedDevices ¶
func (p *GPUDevicePlugin) UpdateAllocatableAssociatedDevices( ctx context.Context, request *pluginapi.UpdateAllocatableAssociatedDevicesRequest, ) (*pluginapi.UpdateAllocatableAssociatedDevicesResponse, error)
Click to show internal directories.
Click to hide internal directories.