harmonytask test fix
This commit is contained in:
parent
4dee670326
commit
c73f35dcea
@ -220,7 +220,7 @@ func (h *taskTypeHandler) AssertMachineHasCapacity() error {
|
|||||||
return errors.New("Did not accept " + h.Name + " task: out of available GPU")
|
return errors.New("Did not accept " + h.Name + " task: out of available GPU")
|
||||||
}
|
}
|
||||||
for _, u := range r.GpuRam {
|
for _, u := range r.GpuRam {
|
||||||
if u > lo.Sum(h.Cost.GpuRam) {
|
if u >= lo.Sum(h.Cost.GpuRam) {
|
||||||
goto enoughGpuRam
|
goto enoughGpuRam
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user