Documentation
¶
Index ¶
- func NewGPUMemPlugin(base *baseplugin.BasePlugin) resourceplugin.ResourcePlugin
- type GPUMemPlugin
- func (p *GPUMemPlugin) Allocate(ctx context.Context, resourceReq *pluginapi.ResourceRequest, ...) (*pluginapi.ResourceAllocationResponse, error)
- func (p *GPUMemPlugin) GetTopologyAwareAllocatableResources(ctx context.Context) (*gpuconsts.AllocatableResource, error)
- func (p *GPUMemPlugin) GetTopologyAwareResources(ctx context.Context, podUID, containerName string) (*pluginapi.GetTopologyAwareResourcesResponse, error)
- func (p *GPUMemPlugin) GetTopologyHints(ctx context.Context, req *pluginapi.ResourceRequest) (resp *pluginapi.ResourceHintsResponse, err error)
- func (p *GPUMemPlugin) ResourceName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGPUMemPlugin ¶
func NewGPUMemPlugin(base *baseplugin.BasePlugin) resourceplugin.ResourcePlugin
Types ¶
type GPUMemPlugin ¶
type GPUMemPlugin struct {
sync.Mutex
*baseplugin.BasePlugin
}
func (*GPUMemPlugin) Allocate ¶
func (p *GPUMemPlugin) Allocate( ctx context.Context, resourceReq *pluginapi.ResourceRequest, deviceReq *pluginapi.DeviceRequest, ) (*pluginapi.ResourceAllocationResponse, error)
func (*GPUMemPlugin) GetTopologyAwareAllocatableResources ¶
func (p *GPUMemPlugin) GetTopologyAwareAllocatableResources(ctx context.Context) (*gpuconsts.AllocatableResource, error)
func (*GPUMemPlugin) GetTopologyAwareResources ¶
func (p *GPUMemPlugin) GetTopologyAwareResources(ctx context.Context, podUID, containerName string) (*pluginapi.GetTopologyAwareResourcesResponse, error)
func (*GPUMemPlugin) GetTopologyHints ¶
func (p *GPUMemPlugin) GetTopologyHints(ctx context.Context, req *pluginapi.ResourceRequest) (resp *pluginapi.ResourceHintsResponse, err error)
func (*GPUMemPlugin) ResourceName ¶
func (p *GPUMemPlugin) ResourceName() string
Click to show internal directories.
Click to hide internal directories.