Skip to content

Commit

Permalink
Merge pull request #123 from mhakala/master
Browse files Browse the repository at this point in the history
Address config changes for 21.08+
  • Loading branch information
VilleS1 authored Dec 7, 2021
2 parents 232dd71 + c523597 commit 805609b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ slurm_JobAcctGatherType: "jobacct_gather/linux"
slurm_JobAcctGatherFrequency: "energy=60,task=60"
slurm_AcctGatherEnergyType: "acct_gather_energy/rapl"
slurm_AcctGatherNodeFreq: "60"
slurm_accounting_store_flags: "job_comment"

# Job-private /tmp, /var/tmp and /dev/shm
pam_use_namespace: False
Expand Down
2 changes: 2 additions & 0 deletions templates/cgroup.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ CgroupMountpoint={{ slurm_cgroup_mountpoint }}
CgroupAutomount={{ slurm_cgroup_automount }}

ConstrainCores={{ slurm_cgroup_constrain_cores }}
{% if slurm_major_version|int < 21 %}
TaskAffinity={{ slurm_cgroup_taskaffinity }}
{% endif %}
{% if slurm_cgroup_constrain_kmem_space is defined %}
ConstrainKmemSpace={{ slurm_cgroup_constrain_kmem_space }}
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions templates/slurm.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ AccountingStorageType={{ slurm_accounting_storage_type }}
AccountingStorageHost={{ slurm_accounting_storage_host }}
{% if slurm_major_version|int < 21 %}
AccountingStorageLoc={{ slurm_accounting_storage_loc }}
{% else %}
AccountingStoreFlags={{ slurm_accounting_store_flags }}
{% endif %}
AccountingStorageUser={{ slurm_accounting_storage_user }}
AccountingStorageEnforce={{ slurm_accounting_storage_enforce }}
Expand Down

0 comments on commit 805609b

Please sign in to comment.