Tasks¶
The root level tasks section is where tasks are declared and their concrete content specified but no graph related information like input/output relationships which is the topic of the cycles section. Any task referred to in cycles must be declared here in tasks.
Even though most of the task content depends on the plugin and is described in the corresponding section, some specifications are common to all plugins and described here. This section is a sequence of mappings from task names to their content and typically looks like this:
tasks:
- ROOT:
account: "my_cluster_account"
- SIROCCO:
walltime: "00:05:00"
uenv: "sirocco/v0.1.0"
- task name 1:
plugin: "shell"
[...]
- task name 2:
plugin: "icon"
[...]
The special ROOT task¶
If a task named ROOT is declared, its attributes are propagated as default for all the other tasks. This is typically useful to set scheduling task specifications like accounts, partitions, etc...
The special SIROCCO task¶
When using the standalone engine, the task named SIROCCO hosts the specifications of the Sirocco continuation task, the job propagating the task front: it checks the current state of the workflow, submits new tasks as needed and dumps the new state to file. It is required by the standalone engine, which refuses to run a workflow without it. Like any other task, it inherits the specifications of the ROOT task, so - SIROCCO: alone is enough if ROOT already provides everything needed. This task needs to find the sirocco executable in PATH, which can be achieved in different ways:
- through the virtual environment where it is installed via the
venvspecification (see below) - provided by a
uenvin a certainview - readily available from a fresh
bashlogin, for instance installed system-wide or loaded from.bashrc
venv¶
type: string
optional
description: absolute path to the virtual environment to activate in order to have access to the sirocco CLI. For instance, if specifying venv: /path/to/.venv, source /path/to/.venv/bin/activate will be added to the continuation task run script so that it takes precedence over other methods for providing the sirocco executable.
All tasks¶
Specifications¶
Specifications describing requested resources are translated into options of the scheduler selected for the workflow. The correspondence is listed in scheduler options.
plugin¶
type: string
required except for ROOT and SIROCCO tasks which are identified by their special names.
choices : "shell" or "icon"
description: designates the type of task. The 2 supported plugins for now are shell and icon
computer¶
type: string
required
description: used to identify the HPC system and potentially set default values.
soon changing
computer should be specified at the root workflow level and not per task as all tasks are expected to run on the same HPC system.
parameters¶
type: sequence of strings
optional
description: Sequence of parameter names which must be declared in the corresponding root level section. One instance is created for each combination of their values. See Parameters for how parameters are declared, attached and targeted across sections.
account¶
type: string
optional
description: account charged for the resources used by the task. Set in the job header (see scheduler options).
partition¶
type: string
optional
description: partition (or queue) of the HPC system the task is submitted to. Set in the job header (see scheduler options).
walltime¶
type: string
format: "HH:MM:SS"
optional
description: maximum run time requested for the task. Set in the job header (see scheduler options).
nodes¶
type: integer
default: 1
description: number of requested nodes. Set in the job header (see scheduler options). The corresponding environment variable N_NODES is exported in the submitted run script.
sockets_per_node¶
type: integer
default: 1
description: Number of physical coherent sub-units per node. On the Santis machine, it maps to --gpus-per-node. The ICON plugin uses it to dispatch MPI processes on different NUMA nodes.
gpus_per_node¶
type: integer
optional
description: number of requested GPU devices per node. Set in the job header (see scheduler options).
gres¶
type: string
optional
schedulers: SLURM only
description: generic resources requested for the task. Set in the job header (see scheduler options).
gres_flags¶
type: string
optional
schedulers: SLURM only
description: flags controlling how generic resources are allocated. Set in the job header (see scheduler options).
procs_per_node¶
type: integer
optional
description: number of MPI processes per node. It is not set in the job header: when set, the corresponding environment variable PROCS_PER_NODE is exported in the submitted run script so that users can pass it to their MPI launcher (see scheduler options).
cores_per_proc¶
type: integer
optional
description: number of cores per MPI process. It is not set in the job header: when set, the corresponding environment variable CORES_PER_PROC is exported in the submitted run script so that users can pass it to their MPI launcher (see scheduler options).
uenv¶
type: string
format: Follow CSCS docs for SLURM integration
optional
description: CSCS user environment . Set in the job header on machines supporting uenvs (see scheduler options).
view¶
type: string
optional
description: CSCS user environment view . Set in the job header on machines supporting uenvs (see scheduler options).