Skip to content

Commit

Permalink
don't fail permenantly when nvml isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Nov 18, 2020
1 parent ae4862b commit ab1e7ab
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 ab1e7ab

Please sign in to comment.