diff --git a/lib/harmony/harmonytask/task_type_handler.go b/lib/harmony/harmonytask/task_type_handler.go index b3bf733e5..da42c6871 100644 --- a/lib/harmony/harmonytask/task_type_handler.go +++ b/lib/harmony/harmonytask/task_type_handler.go @@ -220,7 +220,7 @@ func (h *taskTypeHandler) AssertMachineHasCapacity() error { return errors.New("Did not accept " + h.Name + " task: out of available GPU") } for _, u := range r.GpuRam { - if u > lo.Sum(h.Cost.GpuRam) { + if u >= lo.Sum(h.Cost.GpuRam) { goto enoughGpuRam } }