1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-04-30 14:27:38 +08:00
parent 143490e4d4
commit b5eeb6a77f

View File

@@ -220,6 +220,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
/* second round, find sharable gpu */ /* second round, find sharable gpu */
if len(candidates) == 0 { if len(candidates) == 0 {
// check sharable // check sharable
log.Info("dasdsa")
if util, valid := InstanceOfOptimizer().predictUtilGPU(job.Name); valid { if util, valid := InstanceOfOptimizer().predictUtilGPU(job.Name); valid {
for i := poolID; i < pool.poolsCount; i++ { for i := poolID; i < pool.poolsCount; i++ {
@@ -286,8 +287,8 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
} }
} }
for _, lock := range locks { for i, lock := range locks {
log.Info("unlock ", lock) log.Info("unlock ", i)
lock.Unlock() lock.Unlock()
} }
go func(res NodeStatus) { go func(res NodeStatus) {