NVIDIA / ansible-role-nvidia-driver

BSD 3-Clause "New" or "Revised" License
117 stars 67 forks source link

Add support for Ubuntu 24.04 #81

Open Sohan-Opstree opened 3 months ago

Sohan-Opstree commented 3 months ago

Could you please confirm if this Ansible role supports Ubuntu 24.04? If not, could you consider adding support for it? This would enable us to use the role directly to install the driver on Ubuntu 24.04.

### Tasks
learning4life commented 1 month ago

Also here for Ubuntu 24.04 support?

btravouillon commented 1 month ago

We have a basic setup of this role in our test lab, we only install the drivers without advanced tuning. This works well with Ubuntu 24.04.

I had to define two variables in the inventory since the default ones use unavailable versions of packages.

$ cat host_vars/gpulab2.yml 
---
# For Ubuntu 24.04 LTS
nvidia_driver_branch: 560
nvidia_driver_ubuntu_cuda_keyring_package: cuda-keyring_1.1-1_all.deb
bob@gpulab2:~$ grep PRETTY /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
bob@gpulab2:~$ nvidia-smi 
Fri Oct 18 20:49:24 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  Tesla M40 24GB                 On  |   00000000:00:10.0 Off |                    0 |
| N/A   29C    P8             17W /  250W |       0MiB /  23040MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  Tesla M40 24GB                 On  |   00000000:00:11.0 Off |                    0 |
| N/A   30C    P8             17W /  250W |       0MiB /  23040MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+