Skip to content

Commit

Permalink
Merge pull request #8 from xylar/switch_to_configuration_on_cori
Browse files Browse the repository at this point in the history
Switch Cori from partitions to configurations
  • Loading branch information
xylar authored Oct 14, 2021
2 parents 90caff7 + a12b693 commit 33b1446
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 @@ -323,6 +323,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 @@ -340,14 +344,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 33b1446

Please sign in to comment.