Skip to content

Commit 8d0a362

Browse files
authored
Update gpu_usage_calculator.go
1 parent e7af5c5 commit 8d0a362

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/status-updater/handlers/pod/gpu_usage_calculator.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ func calculateUtilizationFromAnnotation(annotationValue string) (*topology.Range
104104
}
105105

106106
func getPodType(dynamicClient dynamic.Interface, pod *v1.Pod) (string, error) {
107-
// First, try to get workload type from pod labels
108107
if workloadKind, ok := pod.Labels["workloadKind"]; ok {
109-
// Map Run:AI workload kinds to utilization types
110108
switch workloadKind {
111109
case "TrainingWorkload":
112110
return "train", nil

0 commit comments

Comments
 (0)