cadvisor/accelerators
Rohit Agarwal 2ce41611a0 Initialize NVML on demand.
Earlier if the NVIDIA driver was not installed when cAdvisor was started
we would start a goroutine to try to initialize NVML every minute.

This resulted in a race. We can have a situation where:
- goroutine tries to initialize NVML but fails. So, it sleeps for a minute.
- the driver is installed.
- a container that uses NVIDIA devices is started.
This container would not get GPU stats because a minute has not passed
since the last failed initialization attempt and so NVML is not
initialized.
2018-06-18 10:45:40 -07:00
..
nvidia_test.go Initialize NVML on demand. 2018-06-18 10:45:40 -07:00
nvidia.go Initialize NVML on demand. 2018-06-18 10:45:40 -07:00
types.go Collect container-level GPU metrics using NVML. 2017-11-06 11:54:59 -08:00