Skip to content

Commit

Permalink
Switch Cori from partitions to configurations
Browse files Browse the repository at this point in the history
This merge switches the config options associated with Cori's
two configurations (haswell and knl) to be called "configurations"
rather than "partitions", to be consistent with their usage in
Slrum.
  • Loading branch information
xylar committed Oct 14, 2021
1 parent f5eb0b9 commit a12b693
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
13 changes: 12 additions & 1 deletion mache/machine_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ def get_account_defaults(self):
The default partition on the machine, or ``None`` if no partition
should be specified
configuration : str
The default configuration on the machine, or ``None`` if no
configuration should be specified
qos : str
The default quality of service on the machine, or ``None`` if no
QOS should be specified
Expand All @@ -299,14 +303,21 @@ def get_account_defaults(self):
else:
partition = None

if config.has_option('parallel', 'configurations'):
configuration = config.get('parallel', 'configurations')
# take the first entry
configuration = configuration.split(',')[0].strip()
else:
configuration = None

if config.has_option('parallel', 'qos'):
qos = config.get('parallel', 'qos')
# take the first entry
qos = qos.split(',')[0].strip()
else:
qos = None

return account, partition, qos
return account, partition, configuration, qos

def _get_config(self):
""" get a parser for config options """
Expand Down
4 changes: 2 additions & 2 deletions mache/machines/cori-haswell.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ cores_per_node = 32
# account for running diagnostics jobs
account = e3sm

# available partition(s) (default is the first)
partitions = haswell
# available configurations(s) (default is the first)
configurations = haswell

# quality of service (default is the first)
qos = regular, premium, debug
4 changes: 2 additions & 2 deletions mache/machines/cori-knl.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ cores_per_node = 68
# account for running diagnostics jobs
account = e3sm

# available partition(s) (default is the first)
partitions = knl
# available configurations(s) (default is the first)
configurations = knl

# quality of service (default is the first)
qos = regular, premium, debug

0 comments on commit a12b693

Please sign in to comment.