File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 254
254
hosts : cuda
255
255
become : yes
256
256
tasks :
257
- - name : Get facts about Cuda installation
257
+ - name : Get facts about CUDA installation
258
258
import_role : cuda
259
259
tasks_from : facts.yml
260
260
261
261
- name : Recompile and install slurm packages
262
262
shell : |
263
+ #!/bin/bash
263
264
dnf download --source slurm-slurmd-ohpc
264
- rpm -i slurm-ohpc-23.11.10-320.ohpc.3.1 .src.rpm
265
+ rpm -i slurm-ohpc-* .src.rpm
265
266
dnf install -y @'Development Tools'
266
267
cd /root/rpmbuild/SPECS
267
- dnf builddep -y slurm.spec
268
+ dnf builddep -y slurm.spec
268
269
rpmbuild -bb -D "_with_nvml --with-nvml=/usr/local/cuda-{{ cuda_facts_version_short }}/targets/x86_64-linux/"
269
270
dnf reinstall /root/rpmbuild/RPMS/x86_64/*.rpm
271
+ # Workaround path issue: https://groups.google.com/g/slurm-users/c/cvGb4JnK8BY
272
+ ln -s /lib64/libnvidia-ml.so.1 /lib64/libnvidia-ml.so
270
273
271
274
- name : Run post.yml hook
272
275
vars :
You can’t perform that action at this time.
0 commit comments