k3s/vendor/github.com/mindprince/gonvml
Rohit Agarwal fe5ef1b494 Update cAdvisor.
Also update golang.org/x/sys because of google/cadvisor#1786
2017-11-10 14:54:28 -08:00
..
BUILD Update cAdvisor. 2017-11-10 14:54:28 -08:00
LICENSE Update cAdvisor. 2017-11-10 14:54:28 -08:00
Makefile Update cAdvisor. 2017-11-10 14:54:28 -08:00
NVML_NOTICE Update cAdvisor. 2017-11-10 14:54:28 -08:00
README.md Update cAdvisor. 2017-11-10 14:54:28 -08:00
bindings.go Update cAdvisor. 2017-11-10 14:54:28 -08:00
nvml.h Update cAdvisor. 2017-11-10 14:54:28 -08:00

README.md

Go Bindings for NVML

NVML or NVIDIA Management Library is a C-based API that can be used for monitoring NVIDIA GPU devices. It's closed source but can be downloaded as part of the GPU Deployment Kit.

The NVML API Reference describe various methods that are available as part of NVML.

The nvml.h file is included in this repository so that we don't depend on the presence of NVML in the build environment.

The bindings.go file is the cgo bridge which calls the NVML functions. The cgo preamble in bindings.go uses dlopen to dynamically load NVML and makes its functions available.