Skip to content

Improve support for Andes #450

@forsyth2

Description

@forsyth2

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions