mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-09 18:23:00 +02:00
Update dependencies and ccms client
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
}
|
||||
|
@@ -89,7 +89,7 @@ type Tag {
|
||||
type Resource {
|
||||
hostname: String!
|
||||
hwthreads: [Int!]
|
||||
accelerators: [Int!]
|
||||
accelerators: [String!]
|
||||
configuration: String
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user