diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2020-02-22 01:30:41 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2020-02-22 01:30:41 +0100 |
commit | 1eda0736a8f72076eca51faf543b3a825359b96e (patch) | |
tree | 8e873c01eaeedda1fbd374ae74ac22c1d4dd9c12 /roles/cuda | |
parent | c42fd5cba3486068d535f38774d90aa275393b85 (diff) | |
download | itm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.gz itm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.bz2 itm-1eda0736a8f72076eca51faf543b3a825359b96e.tar.xz itm-1eda0736a8f72076eca51faf543b3a825359b96e.zip |
Enable DKMS if CUDA is installed and disable cgroups in nvidia-container-runtime
Diffstat (limited to 'roles/cuda')
-rw-r--r-- | roles/cuda/tasks/cuda_init.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/cuda/tasks/cuda_init.yml b/roles/cuda/tasks/cuda_init.yml index ff54994..6d579de 100644 --- a/roles/cuda/tasks/cuda_init.yml +++ b/roles/cuda/tasks/cuda_init.yml @@ -31,6 +31,12 @@ enabled: yes when: ansible_service_mgr == "systemd" +- name: enable the DKMS systemd service + service: + name: dkms + enabled: yes + when: ansible_service_mgr == "systemd" + - name: check if cuda_gpu_name0 ( /dev/nvidia0 ) exists stat: path: "{{ cuda_gpu_name0 }}" |