Skip to content

Commit 4627526

Browse files
authored
Merge pull request #724 from stackhpc/fix/only-slurm-rebuild
Fix cuda install when building without lustre first
2 parents 3a92c41 + f0d953d commit 4627526

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.github/workflows/extra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- 'environments/.stackhpc/tofu/cluster_image.auto.tfvars.json'
99
- 'ansible/roles/doca/**'
1010
- 'ansible/roles/cuda/**'
11+
- 'ansible/roles/slurm_recompile/**' # runs on cuda group
1112
- 'ansible/roles/lustre/**'
1213
- '.github/workflows/extra.yml'
1314
pull_request:

ansible/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ roles/*
9090
!roles/gateway/**
9191
!roles/alertmanager/
9292
!roles/alertmanager/**
93-
!roles/slurm_recompile/**
93+
!roles/slurm_recompile/
9494
!roles/slurm_recompile/**
9595
!roles/nhc/
9696
!roles/nhc/**

ansible/roles/slurm_recompile/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
# Whether to link slurm against the NVIDIA management library
33
slurm_recompile_with_nvml: false
44

5+
slurm_recompile_build_packages:
6+
- rpm-build

ansible/roles/slurm_recompile/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
set_fact:
1313
slurm_package: "{{ ansible_facts.packages['slurm-slurmd-ohpc'].0 }}"
1414

15+
- name: Install build packages
16+
ansible.builtin.dnf:
17+
name: "{{ slurm_recompile_build_packages }}"
18+
1519
- name: Recompile and install slurm packages
1620
shell: |
1721
#!/bin/bash

0 commit comments

Comments
 (0)