Skip to content

Commit

Permalink
Merge pull request #2737 from bobbypage/v0.37-gpu
Browse files Browse the repository at this point in the history
Cherrypick to v0.37: don't fail permenantly when nvml isn't installed
  • Loading branch information
bobbypage authored Nov 18, 2020
2 parents 65fa5b4 + 02a4436 commit a63a71b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions accelerators/nvidia.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ func NewNvidiaManager(includedMetrics container.MetricSet) stats.Manager {
manager := &nvidiaManager{}
err := manager.setup()
if err != nil {
klog.Warningf("NVIDIA GPU metrics will not be available: %s", err)
manager.Destroy()
return &stats.NoopManager{}
klog.V(2).Infof("NVIDIA setup failed: %s", err)
}
return manager
}
Expand Down

0 comments on commit a63a71b

Please sign in to comment.