mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
bugfix
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user