Skip to content
Snippets Groups Projects
Commit 636b5b94 authored by Chris Hines's avatar Chris Hines
Browse files

tweak the slurm.conf template to remove duplicate node entires if a node...

tweak the slurm.conf template to remove duplicate node entires if a node exists in multiple partitions
parent 4c532ae8
No related branches found
No related tags found
No related merge requests found
......@@ -91,12 +91,19 @@ JobCompType=jobcomp/none
#AccountingStoragePass=
#AccountingStorageUser=
#
MpiParams=ports=12000-12999
# COMPUTE NODES
{% set nodelist = [] %}
{% for queue in slurmqueues %}
{% for node in groups[queue.group] %}
NodeName={{ node }} Procs={{ hostvars[node]['ansible_processor_cores'] }} State=UNKNOWN
{% if nodelist.append(node) %}
{% endif %}
{% endfor %}
{% endfor %}
{% for node in nodelist|unique %}
NodeName={{ node }} Procs={{ hostvars[node]['ansible_processor_cores'] }} State=UNKNOWN
{% endfor %}
{% for queue in slurmqueues %}
PartitionName={{ queue.name }} Nodes={{ groups[queue.group]|join(',') }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment