1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2020-04-30 15:11:06 +08:00
parent 467c90211d
commit dc28448e1e
2 changed files with 21 additions and 19 deletions

View File

@@ -267,13 +267,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus {
log.Info(allocationType)
/*assign*/
if len(candidates) > 0 {
var available []GPUStatus
for _, status := range candidates[0].Status {
if status.MemoryAllocated == 0 && status.MemoryUsed < 10 {
available = append(available, status)
}
}
node := candidates[0]
res.ClientID = node.ClientID
res.ClientHost = node.ClientHost