1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00

add optimizer

This commit is contained in:
2020-04-12 11:14:53 +08:00
parent acdbd39a08
commit 55e3fe781b
2 changed files with 30 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ func (pool *ResourcePool) attach(GPU string, job string) {
func (pool *ResourcePool) detach(GPU string, jobName string) {
if _, ok := pool.bindings[GPU]; ok {
if len(pool.bindings[GPU]) == 1 {
InstanceOptimizer().feed(jobName, pool.utils[GPU])
InstanceOfOptimizer().feed(jobName, pool.utils[GPU])
pool.utils[GPU] = []int{}
}
}