Update dependencies and ccms client

This commit is contained in:
Lou Knauer
2022-05-04 09:22:55 +02:00
parent 738028b198
commit 97806669f9
7 changed files with 1600 additions and 401 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -111,3 +111,12 @@ func (topo *Topology) GetAcceleratorIDs() ([]int, error) {
}
return accels, nil
}
func (topo *Topology) GetAcceleratorIndex(id string) (int, bool) {
for idx, accel := range topo.Accelerators {
if accel.ID == id {
return idx, true
}
}
return -1, false
}

View File

@@ -89,7 +89,7 @@ type Tag {
type Resource {
hostname: String!
hwthreads: [Int!]
accelerators: [Int!]
accelerators: [String!]
configuration: String
}