Skip to content

Commit

Permalink
Fix gres.conf generation
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudfroidmont committed Oct 2, 2024
1 parent a3a9f52 commit 070209b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion playbooks/roles/slurm/tasks/compute-rack-aware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
blockinfile:
block: "{{ lookup('template', 'gres.conf.j2') }}"
path: "{{ slurm_conf_path }}/gres.conf"
marker: "### {{ansible_hostname}}"
marker: "### {mark} {{ansible_hostname}}"
throttle: 1
delegate_to: 127.0.0.1
when: "'GPU' in shape"

Expand Down
3 changes: 2 additions & 1 deletion playbooks/roles/slurm/tasks/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
blockinfile:
block: "{{ lookup('template', 'gres.conf.j2') }}"
path: "{{ slurm_conf_path }}/gres.conf"
marker: "### {{ansible_hostname}}"
marker: "### {mark} {{ansible_hostname}}"
throttle: 1
delegate_to: 127.0.0.1
when: "'GPU' in shape"

Expand Down

0 comments on commit 070209b

Please sign in to comment.