diff options
author | Marcel Huber | 2016-07-26 14:01:52 +0200 |
---|---|---|
committer | Marcel Huber | 2016-07-26 14:01:52 +0200 |
commit | a1c3b764d7d37a159b3152329c1a61a35cfe0020 (patch) | |
tree | 39eba998baa6de22dfa907b578b0236256efae59 /nvidia-docker.install | |
download | aur-a1c3b764d7d37a159b3152329c1a61a35cfe0020.tar.gz |
nvidia-docker plugin and wrapper to start CUDA containers
Diffstat (limited to 'nvidia-docker.install')
-rw-r--r-- | nvidia-docker.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nvidia-docker.install b/nvidia-docker.install new file mode 100644 index 000000000000..7b0fccfe9cb3 --- /dev/null +++ b/nvidia-docker.install @@ -0,0 +1,20 @@ +post_install() { + cat << EOF +=> Prior to running 'CUDA'-containers, ensure that the nvidia-docker-plugin + is loaded. -> https://github.com/NVIDIA/nvidia-docker#other-distributions + +*) manually; sudo -b nohup nvidia-docker-plugin > /tmp/nvidia-docker.log + +*) automatically at startup; systemctl enable nvidia-docker.service +EOF +} + +post_upgrade() { + post_install +} + +post_remove() { + cat << EOF +=> Don't forget to disable/stop a potentially running nvidia-docker.service +EOF +} |