SLURM Reference Manual for HP XC System Software

I/O Redirection Alternatives
SRUN I/O options (page 33) -i (--input), -o (--output), and -e (--error) all take as arguments any of
ve I/O redirection alternatives ("modes") summarized in this table and explained in more detail below it:
I/O Goes
To or From
Tasks
Covered
File-Naming
Subchoices
Redirection
Alternatives
SRUN (terminal)all tasksall [default]
/dev/null (ignored)all tasksnone
SRUN (terminal)one selected tasktaskid
one specied leall taskslename
many separate les:many separate tasks:fstring
1 le per jobid.stepidall with jobid.stepid%J [uc]
1 le per jobidall with jobid%j [lc]
1 le per stepidall with stepid%s [lc]
1 le per nodeall on hostname%N [uc]
1 le per nodeall on node n%n [lc]
1 le per taskeach separate task%t [lc]
The I/O redirection alternatives compared in the table work in detail as follows:
all redirects STDOUT and STDERR from all job tasks to SRUN (and hence to the
attached terminal), and broadcasts STDIN from SRUN (the terminal) to all remote
tasks (this is SRUN's default behavior for handling I/O).
none redirects STDOUT and STDERR from all job tasks to /dev/null (i.e., SRUN receives
no I/O from any task), and sends no STDIN to any task (closes STDIN).
taskid redirects to SRUN (and hence to the attached terminal) STDOUT and STDERR from
the single specied task whose relative ID is taskid, where the range for integer taskid
starts at 0 (the rst task) and runs through the total number of tasks in the current job
step. This choice also redirects STDIN from SRUN (the terminal) to this single
specied task.
lename redirects STDOUT and STDERR from all job tasks into a single le called lename,
and broadcasts STDIN from that same le to all remote tasks. To subdivide the I/O
among separate les, use the fstring alternative below.
fstring ["format string"]
uses a parameterized "format string" to systematically generate unique names for
(usually) multiple I/O les, each of which receives some job I/O depending on the
naming scheme that you choose. You can subdivide the received I/O into separate
les by job ID, step ID, node (name or sequence number), or individual task. In each
case, SRUN opens the appropriate number of les and associates each with the
appropriate subset of tasks.
SLURM Reference Manual - 34