Skip to content

Commit

Permalink
Merge pull request #1106 from NVIDIA/gpu-mode-labeler-optional
Browse files Browse the repository at this point in the history
Raise a warning instead of an error if GPU mode labeler fails
  • Loading branch information
cdesiniotis authored Jan 10, 2025
2 parents 61887fe + bd00e7d commit f7dc5f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/lm/nvml.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ func isMPSCapable(manager resource.Manager) (bool, error) {
func newGPUModeLabeler(devices []resource.Device) (Labeler, error) {
classes, err := getDeviceClasses(devices)
if err != nil {
return nil, err
klog.Warningf("Failed to create GPU mode labeler: failed to get device classes: %v", err)
return Labels{"nvidia.com/gpu.mode": "unknown"}, nil
}
gpuMode := getModeForClasses(classes)
labels := Labels{
Expand Down

0 comments on commit f7dc5f1

Please sign in to comment.