ICC Home Privacy and Legal Notice LC User Documents Banner

UCRL-WEB-201386

SLURM Reference Manual



Links to subtopics in this section:
  • I/O Commands

  • I/O Redirection Alternatives


  • Navigation Links: [ Document List ] [ HPC Home ]

    No content in this section. Showing first subtopic...

    I/O Commands

    These SRUN commands manage and redirect the standard input to, as well as the standard output and error messages from, parallel jobs executed under SLURM. Three of these commands let you choose from among any of five I/O redirection alternatives ("modes") that are explained in the next section.

    -o mode (lowercase, --output=mode)
    redirects standard output STDOUT for this job to mode, one of five alternative ways to display, capture, or subdivide the job's I/O, explained in the next subsection. By default, SRUN collects STDOUT from all job tasks and line buffers it to the attached terminal.
    -i mode (lowercase, --input=mode)
    redirects standard input STDIN for this job from mode, one of five alternative ways to display, capture, or subdivide the job's I/O, explained in the next subsection. By default, SRUN redirects STDIN from the attached terminal to all job tasks.
    -e mode (lowercase, --error=mode)
    redirects standard error STDERR for this job to mode, one of five alternative ways to display, capture, or subdivide the job's I/O, explained in the next subsection. By default, SRUN collects STDERR from all job tasks and line buffers it to the attached terminal, just as with STDOUT. But you can request that SRUN handle standard output and standard error differently by invoking -e and -o with different redirection modes.
    -l (lowercase ell, --label)
    prepends the remote task ID number to each line of standard output and standard error. By default, SRUN line buffers this I/O to the terminal (or to specified files) without any task labels. Options -l and -u are mutually exclusive.
    -u (lowercase, --unbuffered)
    prevents line buffering of standard output from remote tasks (buffering is the SRUN default). Options -l and -u are mutually exclusive.


    Navigation Links: [ Document List ] [ HPC Home ] [ Next ]