You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
package ascend
|
|
|
|
import "vgpu/internal/provider/util"
|
|
|
|
const (
|
|
AscendDevice = "Ascend"
|
|
Ascend310PDevice = "Ascend310P"
|
|
AscendDeviceSelection = "huawei.com/predicate-ascend-idx-"
|
|
// IluvatarUseUUID is user can use specify Iluvatar device for set Iluvatar UUID.
|
|
AscendDeviceUseUUID = "huawei.com/use-ascenduuid"
|
|
// IluvatarNoUseUUID is user can not use specify Iluvatar device for set Iluvatar UUID.
|
|
AscendNoUseUUID = "huawei.com/nouse-ascenduuid"
|
|
Ascend910BNodeRegisterAnno = "hami.io/node-register-Ascend910B"
|
|
Ascend310PNodeRegisterAnno = "hami.io/node-register-Ascend310P"
|
|
)
|
|
|
|
var (
|
|
AscendResourceCount string
|
|
AscendResourceMemory string
|
|
AscendResourceCores string
|
|
AscendNodeRegisterAnnos []string
|
|
)
|
|
|
|
func init() {
|
|
AscendNodeRegisterAnnos = []string{Ascend910BNodeRegisterAnno, Ascend310PNodeRegisterAnno}
|
|
util.InRequestDevices[AscendDevice] = "hami.io/Ascend910B-devices-to-allocate"
|
|
util.SupportDevices[AscendDevice] = "hami.io/Ascend910B-devices-allocated"
|
|
util.InRequestDevices[Ascend310PDevice] = "hami.io/Ascend310P-devices-to-allocate"
|
|
util.SupportDevices[Ascend310PDevice] = "hami.io/Ascend310P-devices-allocated"
|
|
}
|