]> git.ipfire.org Git - thirdparty/lxc.git/commit
hooks: add mount hook to configure access to NVIDIA GPUs 2015/head
authorFelix Abecassis <fabecassis@nvidia.com>
Tue, 19 Dec 2017 00:17:23 +0000 (16:17 -0800)
committerFelix Abecassis <fabecassis@nvidia.com>
Tue, 19 Dec 2017 00:17:23 +0000 (16:17 -0800)
commit58e29e9bf15cdf9ce217889524a4b24a048c7ece
tree7bafc9497fbad4d5c9a6ff74c068e4f79d5fdcbe
parent9668d2cd1520ca5b1e919e2432d4bb3e07c80bf1
hooks: add mount hook to configure access to NVIDIA GPUs

This hook requires the nvidia-container-cli tool provided by libnvidia-container:
https://github.com/nvidia/libnvidia-container

For containers that do not have CUDA_VERSION or NVIDIA_VISIBLE_DEVICES
set in the environment, the hook will be a no-op.

To enable in the configuration file:
lxc.hook.mount = /usr/local/share/lxc/hooks/nvidia

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
hooks/Makefile.am
hooks/nvidia [new file with mode: 0755]