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

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
}