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-05-26 00:21:28 +08:00
parent 2ddf16cc87
commit 8129d46121

View File

@@ -536,8 +536,9 @@ func (pool *ResourcePool) detach(GPU string, job Job) {
} }
} }
/* return free & using GPUs */
func (pool *ResourcePool) countGPU() (int, int) { func (pool *ResourcePool) countGPU() (int, int) {
return pool.TotalGPU - pool.UsingGPU, pool.TotalGPU return pool.TotalGPU - pool.UsingGPU, pool.UsingGPU
} }
func (pool *ResourcePool) getBindings() map[string]map[string]int { func (pool *ResourcePool) getBindings() map[string]map[string]int {