summaryrefslogtreecommitdiffstats
path: root/roles/cuda/templates/cuda_init.service.j2
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-07-05 16:22:58 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-07-05 16:22:58 +0200
commit0b3d99f96dabb1aa2fbf7f99559852916a97d610 (patch)
treeb56e453cf5182a24c6878c23f5985781928d1e57 /roles/cuda/templates/cuda_init.service.j2
parent5416f8599ffa92b69bb87434dc1175d760760bbe (diff)
parent813756495d5ef33fa3cc95d69b6d88418ebe7bb1 (diff)
downloaditm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.gz
itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.bz2
itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.xz
itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.zip
Merge commit '813756495d5ef33fa3cc95d69b6d88418ebe7bb1' as 'roles/cuda'
Diffstat (limited to 'roles/cuda/templates/cuda_init.service.j2')
-rw-r--r--roles/cuda/templates/cuda_init.service.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/cuda/templates/cuda_init.service.j2 b/roles/cuda/templates/cuda_init.service.j2
new file mode 100644
index 0000000..c61cbad
--- /dev/null
+++ b/roles/cuda/templates/cuda_init.service.j2
@@ -0,0 +1,13 @@
+[Unit]
+Description=Initialize nvidia/cuda devices
+Before=slurm.service
+DefaultDependencies=no
+Conflicts=shutdown.target
+
+[Service]
+ExecStart=/usr/local/bin/cuda_init.sh
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target