Skip to content

Commit

Permalink
Vendor Go bindings for NVML. Don't build a static binary.
Browse files Browse the repository at this point in the history
We can't build a static binary because that would require bundling the
closed source NVML library in cAdvisor.

Instead, gonvml uses dlopen to dynamically load NVML.
  • Loading branch information
rohitagarwal003 committed Nov 1, 2017
1 parent 126fb22 commit 318f28b
Show file tree
Hide file tree
Showing 8 changed files with 6,162 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ if [ "${go_version:0:3}" = "1.4" ]; then
fi

ldflags="
-extldflags '-static'
-X ${repo_path}/version.Version${ldseparator}${version}
-X ${repo_path}/version.Revision${ldseparator}${revision}
-X ${repo_path}/version.Branch${ldseparator}${branch}
Expand Down
202 changes: 202 additions & 0 deletions vendor/github.com/mindprince/gonvml/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/mindprince/gonvml/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions vendor/github.com/mindprince/gonvml/NVML_NOTICE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/mindprince/gonvml/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 318f28b

Please sign in to comment.