1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00
This commit is contained in:
2020-04-30 21:26:04 +08:00
parent 014592fa43
commit cbaef3bd59

View File

@@ -34,7 +34,7 @@ type SchedulerFair struct {
enablePreSchedule bool
enablePreScheduleRatio float64
UsingGPU int
UsingGPU int
UsingGPUMu sync.Mutex
}
@@ -309,6 +309,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
if valid2 {
t := s
now := (int)(time.Now().Unix())
log.Info(t, now, estimate, est)
if now-t > est.Total-est.Post-estimate.Pre && status.MemoryFree > task.MemoryGPU {
available = append(available, status)
}
@@ -362,9 +363,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
}
}
for i := range locks {
pool.poolsMu[i].Unlock()
}