Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceNvidiaGPU = "nvidia.com/gpu" ResourceLsalabGPU = "kubeshare/gpu" ResourceLsalabGPUID = "kubeshare/GPUID" ResourceLsalabGPUReq = "kubeshare/gpu_request" ResourceLsalabGPULimit = "kubeshare/gpu_limit" ResourceLsalabGPUMem = "kubeshare/gpu_mem" )
Variables ¶
This section is empty.
Functions ¶
func InitClientSets ¶
func InitClientSets(it kubeclientset.Interface, mit kubeshareclientset.Interface)
Types ¶
type NodeResource ¶
type NodeResource struct { CpuTotal int64 MemTotal int64 GpuTotal int // GpuMemTotal in bytes GpuMemTotal int64 CpuFree int64 MemFree int64 /* Available GPU calculate */ // Total GPU count - Pods using nvidia.com/gpu GpuFreeCount int // GPUs available usage (1.0 - SharePod usage) // GPUID to integer index mapping GpuFree map[string]*GPUInfo }
func (*NodeResource) DeepCopy ¶
func (this *NodeResource) DeepCopy() *NodeResource
type NodeResources ¶
type NodeResources map[string]*NodeResource
NodeResources: Available resources in cluster to schedule Training Jobs
func SyncClusterResource ¶
func SyncClusterResource() (nodeResources NodeResources, err error)
func (*NodeResources) DeepCopy ¶
func (this *NodeResources) DeepCopy() *NodeResources
func (*NodeResources) PrintMe ¶
func (this *NodeResources) PrintMe()
type PodRequests ¶
type PodRequests []*PodRequest
Click to show internal directories.
Click to hide internal directories.