mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -247,7 +247,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Info(candidates)
|
//log.Info(candidates)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* second round, find vacant gpu */
|
/* second round, find vacant gpu */
|
||||||
@@ -277,7 +277,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Info(candidates)
|
//log.Info(candidates)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* third round, find gpu to be released */
|
/* third round, find gpu to be released */
|
||||||
@@ -327,11 +327,14 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Info(candidates)
|
//log.Info(candidates)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(candidates) > 0 {
|
||||||
log.Info("allocationType is ", allocationType)
|
log.Info("allocationType is ", allocationType)
|
||||||
|
log.Info(candidates)
|
||||||
|
}
|
||||||
|
|
||||||
/* assign */
|
/* assign */
|
||||||
if len(candidates) > 0 {
|
if len(candidates) > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user