1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 16:16:44 +00:00
This commit is contained in:
2020-06-30 23:18:23 +08:00
parent 526a9d8b4c
commit 9dc1237bd2
2 changed files with 9 additions and 2 deletions

View File

@@ -811,6 +811,8 @@ func (pool *ResourcePool) doAcquireResource(job Job) []NodeStatus {
}
node.Status[j].MemoryAllocated += task.MemoryGPU
res.Status[i].MemoryTotal = task.MemoryGPU
/* being used, means share */
res.Status[i].MemoryUsed = 100
}
}
}
@@ -922,6 +924,8 @@ func (pool *ResourcePool) doAcquireResource(job Job) []NodeStatus {
}
node.Status[j].MemoryAllocated += task.MemoryGPU
res.Status[i].MemoryTotal = task.MemoryGPU
/* being fully used, means ahead */
res.Status[i].MemoryUsed = task.MemoryGPU
}
}
}