SDSC Expanse¶
Link to official documentation
- class flow.environments.xsede.ExpanseEnvironment[source]¶
Bases:
DefaultSlurmEnvironment
Environment profile for the Expanse supercomputer.
{# Templated in accordance with: https://www.sdsc.edu/support/user_guides/expanse.html #}
{% extends "slurm.sh" %}
{% block tasks %}
#SBATCH -N {{ resources.num_nodes }}
#SBATCH --ntasks={{ resources.ncpu_tasks }}
{% if 'gpu' in partition %}
#SBATCH --gpus={{ resources.ngpu_tasks }}
{% endif %}
{% endblock tasks %}
{% block header %}
{{- super() -}}
{% set account = account|default(project|get_account_name, true) %}
{% if account %}
#SBATCH -A {{ account }}
{% endif %}
{% endblock header %}