Documentation ¶
Overview ¶
Package ascend910b is using for HuaWei Ascend 910B pin affinity schedule.
Package ascend910b is using for HuaWei Ascend 910B pin affinity schedule.
Package ascend910b is using for HuaWei Ascend 910B pin affinity schedule.
Package ascend910b is using for HuaWei Ascend pin affinity schedule.
Package ascend910b is using for HuaWei pin affinity schedule.
Index ¶
- func GetVNPUTaskCpuLevel(asTask util.NPUTask) string
- func GetVNPUTaskDVPP(asTask util.NPUTask) string
- type Base910b
- func (ab *Base910b) Check910bNodeNPUByTask(task *api.TaskInfo, node plugin.NPUNode) error
- func (ab *Base910b) CheckJobAllowNum(value int) bool
- func (ab *Base910b) CheckJobForm() error
- func (ab *Base910b) GetAcceleratorValue() string
- func (ab *Base910b) GetArch() string
- func (ab *Base910b) GetNPUAllocPriorityArray(taskNPUNumber int) ([]int, error)
- func (ab *Base910b) GetNodeBestScore(taskNPUNum int, npuTop []int) (int, error)
- func (ab *Base910b) GetNodeHccsArray(nodeTop []int) ([]int, []int)
- func (tp *Base910b) GetPresetVirtualDevices()
- func (tp *Base910b) GetVNPUTemplate()
- func (tp *Base910b) InitVNPU()
- func (ab *Base910b) Judge910BNodeAndTaskNPU(taskNPU int, nodeTop []int) error
- func (tp *Base910b) PreStartVNPU(ssn *framework.Session) error
- func (ab *Base910b) ScoreAscendNPUNodes(task *api.TaskInfo, nodes []*api.NodeInfo, sMap map[string]float64) error
- func (ab *Base910b) SetAcceleratorValue(value string)
- func (ab *Base910b) SetArch(value string)
- func (ab *Base910b) SetNpuNumInvalidMap(value map[int]struct{})
- func (ab *Base910b) UpdateNodeInfo(node plugin.NPUNode, usedTop []int) *plugin.NPUNode
- func (ab *Base910b) Use910bAnnotation(task *api.TaskInfo, node plugin.NPUNode) *plugin.NPUNode
- func (ab *Base910b) Valid910bNPUJob() *api.ValidateResult
- func (tp *Base910b) ValidDyVNPUJob() *api.ValidateResult
- type SelectNodeInf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVNPUTaskCpuLevel ¶
GetVNPUTaskCpuLevel cpu default is null
func GetVNPUTaskDVPP ¶
GetVNPUTaskDVPP dvpp default is null
Types ¶
type Base910b ¶
type Base910b struct { base.NPUHandler VHandle *vnpu.VirtualNPU AffScoreList [][]int NpuNumInvalidMap map[int]struct{} // contains filtered or unexported fields }
Base910b for Ascend 910B base.
func (*Base910b) Check910bNodeNPUByTask ¶
Check910bNodeNPUByTask check nod npu meet 910B task req
func (*Base910b) CheckJobAllowNum ¶
CheckJobAllowNum check the single job require is valid. eg:A+X 16P:1,2,4,8,16;A+K 1,2,4,8.
func (*Base910b) CheckJobForm ¶
CheckJobForm to check job ring-controller.atlas for future unification.
func (*Base910b) GetAcceleratorValue ¶
GetAcceleratorValue Get the acceleratorValue to distinguish between task types.
func (*Base910b) GetNPUAllocPriorityArray ¶
GetNPUAllocPriorityArray get priorityArray
func (*Base910b) GetNodeBestScore ¶
GetNodeBestScore Get node core
func (*Base910b) GetNodeHccsArray ¶
GetNodeHccsArray get node hccs array
func (*Base910b) GetPresetVirtualDevices ¶
func (tp *Base910b) GetPresetVirtualDevices()
GetPresetVirtualDevices get preset virtual devices
func (*Base910b) GetVNPUTemplate ¶
func (tp *Base910b) GetVNPUTemplate()
GetVNPUTemplate get vnpu template
func (*Base910b) Judge910BNodeAndTaskNPU ¶
Judge910BNodeAndTaskNPU Judge 910BNode wither meet npu task not.
func (*Base910b) PreStartVNPU ¶
PreStartVNPU do something before schedule for vnpu
func (*Base910b) ScoreAscendNPUNodes ¶
func (ab *Base910b) ScoreAscendNPUNodes(task *api.TaskInfo, nodes []*api.NodeInfo, sMap map[string]float64) error
ScoreAscendNPUNodes core ascend910B node by calculate task req npu num and node npu top
func (*Base910b) SetAcceleratorValue ¶
SetAcceleratorValue Set the acceleratorValue to distinguish between task types.
func (*Base910b) SetNpuNumInvalidMap ¶
SetNpuNumInvalidMap Set the single job not allow number. eg:A+X 16P:9,10,11,12,13,14,15
func (*Base910b) UpdateNodeInfo ¶
UpdateNodeInfo update node info
func (*Base910b) Use910bAnnotation ¶
Use910bAnnotation select npu for 910b task from node
func (*Base910b) Valid910bNPUJob ¶
func (ab *Base910b) Valid910bNPUJob() *api.ValidateResult
Valid910bNPUJob check the 910b job req npu num and mode
func (*Base910b) ValidDyVNPUJob ¶
func (tp *Base910b) ValidDyVNPUJob() *api.ValidateResult
ValidDyVNPUJob valid dynamic cut job
type SelectNodeInf ¶
type SelectNodeInf struct { AllNPUNum int LeftNPUNum int RightNPUNum int // contains filtered or unexported fields }
SelectNodeInf for node hccs.
Directories ¶
Path | Synopsis |
---|---|
Package card910bx2 is using for HuaWei Ascend 910B(Atlas 300T A2) card pin affinity schedule.
|
Package card910bx2 is using for HuaWei Ascend 910B(Atlas 300T A2) card pin affinity schedule. |
Package card910bx2 is using for HuaWei Ascend 910B(Atlas 300T A2) card pin affinity schedule.
|
Package card910bx2 is using for HuaWei Ascend 910B(Atlas 300T A2) card pin affinity schedule. |
Package module910bx16 is using for HuaWei Ascend910B A+X pin affinity schedule.
|
Package module910bx16 is using for HuaWei Ascend910B A+X pin affinity schedule. |
Package module910bx8 is using for HuaWei Ascend910Bx8 pin affinity schedule.
|
Package module910bx8 is using for HuaWei Ascend910Bx8 pin affinity schedule. |
Package superpod is using for HuaWei Atlas 900 A3 SuperPod affinity schedule.
|
Package superpod is using for HuaWei Atlas 900 A3 SuperPod affinity schedule. |