-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Feature type: new machineAdd support for a new machineAdd support for a new machinesemver: new featureNew feature (will increment minor version)New feature (will increment minor version)
Description
Improve support for Andes
Automatically determine the account at https://github.com/E3SM-Project/zppy/blob/main/zppy/__main__.py#L143:
if config["default"]["account"] == "":
if default_account:
config["default"]["account"] = default_account
elif config["default"]["machine"] in ["compy", "pm-cpu", "pm-gpu", "chrysalis"]:
config["default"]["account"] = "e3sm"
elif config["default"]["machine"] == "anvil":
config["default"]["account"] = "condo"
else:
raise ValueError(f"Invalid machine {config['default']['machine']}")
Add the following to https://github.com/E3SM-Project/zppy/blob/main/zppy/templates/slurm_header.sh (from @whannah1):
{% elif machine == 'andes' %}
# Running on andes
#SBATCH --job-name={{ prefix }}
#SBATCH --account={{ account }}
#SBATCH --nodes={{ nodes }}
#SBATCH --output={{ scriptDir }}/{{ prefix }}.o%j
#SBATCH --exclusive
#SBATCH --time={{ walltime }}
#SBATCH --partition={{ partition }}
[Lines already existing in the file won't need to be duplicated]
Metadata
Metadata
Assignees
Labels
Feature type: new machineAdd support for a new machineAdd support for a new machinesemver: new featureNew feature (will increment minor version)New feature (will increment minor version)