Skip to content

Commit

Permalink
Merge pull request #2735 from dashpole/gpu_38
Browse files Browse the repository at this point in the history
Cherrypick to v0.38: Don't fail permenantly when nvml isn't installed
  • Loading branch information
bobbypage authored Nov 18, 2020
2 parents ae4862b + ab1e7ab commit d1e3dea
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 d1e3dea

Please sign in to comment.