Skip to content

Commit b7f4dac

Browse files
committed
updated blueprint
addressed feedback fix typo
1 parent cf6285b commit b7f4dac

1 file changed

Lines changed: 10 additions & 39 deletions

File tree

examples/machine-learning/a3-ultragpu-8g/a3ultra-slurm-blueprint.yaml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ deployment_groups:
6363
enabled: true
6464
world_writable: true
6565
runners:
66-
- type: shell
67-
destination: install-cuda-toolkit.sh
68-
content: |
69-
#!/bin/bash
70-
set -e -o pipefail
71-
sudo add-nvidia-repositories -y
72-
sudo apt install -y cuda-toolkit-12-8
7366
- type: data
7467
destination: /etc/apt/preferences.d/block-broken-nvidia-container
7568
content: |
@@ -140,54 +133,32 @@ deployment_groups:
140133
* - nofile 1048576
141134
* - cpu unlimited
142135
* - rtprio unlimited
143-
136+
- type: shell
137+
destination: install-cuda-toolkit.sh
138+
content: |
139+
#!/bin/bash
140+
set -e -o pipefail
141+
add-nvidia-repositories -y
142+
apt install -y cuda-toolkit-12-8
143+
apt install -y datacenter-gpu-manager-4-cuda12
144144
- type: ansible-local
145-
destination: install_cuda_dcgm.yml
145+
destination: settings_nvidia_dcgm.yml
146146
content: |
147147
---
148-
- name: Install CUDA & DCGM
148+
- name: Nvidia and DGMA settings
149149
hosts: all
150150
become: true
151-
vars:
152-
distribution: "{{ ansible_distribution | lower }}{{ ansible_distribution_version | replace('.','') }}"
153-
cuda_repo_url: https://developer.download.nvidia.com/compute/cuda/repos/{{ distribution }}/x86_64/cuda-keyring_1.1-1_all.deb
154-
cuda_repo_filename: /tmp/{{ cuda_repo_url | basename }}
155-
enable_nvidia_dcgm: false
156-
nvidia_packages:
157-
- cuda-toolkit-12-8
158-
- datacenter-gpu-manager-4-cuda12
159151
tasks:
160-
- name: Download NVIDIA repository package
161-
ansible.builtin.get_url:
162-
url: "{{ cuda_repo_url }}"
163-
dest: "{{ cuda_repo_filename }}"
164-
- name: Install NVIDIA repository package
165-
ansible.builtin.apt:
166-
deb: "{{ cuda_repo_filename }}"
167-
state: present
168152
- name: Reduce NVIDIA repository priority
169153
ansible.builtin.copy:
170154
dest: /etc/apt/preferences.d/cuda-repository-pin-600
171155
mode: 0o0644
172156
owner: root
173157
group: root
174158
content: |
175-
Package: nsight-compute
176-
Pin: origin *ubuntu.com*
177-
Pin-Priority: -1
178-
179-
Package: nsight-systems
180-
Pin: origin *ubuntu.com*
181-
Pin-Priority: -1
182-
183159
Package: *
184160
Pin: release l=NVIDIA CUDA
185161
Pin-Priority: 400
186-
- name: Install CUDA & DCGM
187-
ansible.builtin.apt:
188-
name: "{{ item }}"
189-
update_cache: true
190-
loop: "{{ nvidia_packages }}"
191162
- name: Create nvidia-persistenced override directory
192163
ansible.builtin.file:
193164
path: /etc/systemd/system/nvidia-persistenced.service.d

0 commit comments

Comments
 (0)