You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when calculating pod GPU resources, we just consider the spec.Containers but the spec.InitContainers, actually we should.
func GetGPUResourceOfPod(pod *v1.Pod) uint {
var mem uint
for _, container := range pod.Spec.Containers {
mem += getGPUResourceOfContainer(&container)
}
return mem
}
So the value should be
Max(max(initContainers), sum(Containers))
Why is this needed:
The text was updated successfully, but these errors were encountered:
What would you like to be added:
Currently when calculating pod GPU resources, we just consider the
spec.Containers
but thespec.InitContainers
, actually we should.So the value should be
Max(max(initContainers), sum(Containers))
Why is this needed:
The text was updated successfully, but these errors were encountered: