k3s/vendor/github.com/mindprince/gonvml
Darren Shepherd d246c89254 go mod vendor
2019-09-05 15:16:39 -07:00
..
.travis.gofmt.sh go mod vendor 2019-09-05 15:16:39 -07:00
.travis.yml go mod vendor 2019-09-05 15:16:39 -07:00
bindings_nocgo.go go mod vendor 2019-09-05 15:16:39 -07:00
bindings.go go mod vendor 2019-09-05 15:16:39 -07:00
LICENSE Update vendor 2019-01-11 21:58:27 -07:00
Makefile go mod vendor 2019-09-05 15:16:39 -07:00
NVML_NOTICE Update vendor 2019-01-11 21:58:27 -07:00
nvml.h Update vendor 2019-01-11 21:58:27 -07:00
README.md Update vendor 2019-01-11 21:58:27 -07:00

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.