package api
import "k8s.io/apimachinery/pkg/util/sets"
type NpuBaseInfo struct {
IP string
SuperDeviceID uint32
LevelList []RankLevel `json:"levelList,omitempty"`
}
type NodeDevice struct {
NodeName string
ServerID string
ServerType string `json:"-"`
DeviceMap map[string]string
RackID string `json:"RackID,omitempty"`
NpuInfoMap map[string]*NpuInfo `json:"NpuInfoMap,omitempty"`
AcceleratorType string `json:"AcceleratorType,omitempty"`
}
type SuperPodDevice struct {
Version string
SuperPodID string
NodeDeviceMap map[string]*NodeDevice
RackMap map[string]*RackInfo `json:"RackMap,omitempty"`
AcceleratorType string `json:"AcceleratorType,omitempty"`
}
type SuperPodFaultInfos struct {
SdIds []string
FaultNodes sets.String
NodeNames []string
FaultTimes int64
JobId string `json:"JobId,omitempty"`
}