Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP XC System Software: User's Guide > Chapter 8 Using SLURM

Launching Jobs with the srun Command

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The srun command submits and controls jobs that run under SLURM management. The srun command is used to submit interactive and batch jobs for execution, allocate resources, and initiate job steps.

The srun command handles both serial and parallel jobs.

The srun command has a significant number of options to control the execution of your application closely. However, you can use it for a simple launch of a serial program, as Example 8-1 shows.

Example 8-1 Simple Launch of a Serial Program

$ srun hostname 
n1

The srun Roles and Modes

The srun command submits jobs to run under SLURM management. The srun command can perform many roles in launching and managing your job. The srun command operates in several distinct usage modes to accommodate the roles it performs.

The srun Roles

srun options allow you control a SLURM job by:

  • Specifying the parallel environment for your job when you submit it, such as the number of nodes to use, partition, distribution of processes among nodes, and maximum time.

  • Controlling the behavior of your parallel job as it runs, such as by redirecting or labeling its output, sending it signals, or specifying its reporting verbosity.

The srun Modes

The srun command has five distinct modes in which it can be used:

  • Simple mode

  • Batch mode

  • Allocate mode

  • Attach mode

  • Batch (with LSF-HPC) mode

The SLURM Reference Manual describes the Simple, Batch, Allocate, and Attach modes.

You can submit a script to LSF-HPC that contains (simple) srun commands to execute parallel jobs later. In this case, LSF-HPC takes the place of the srun -b option for indirect, across-machine job-queue management.

Using the srun Command with HP-MPI

The srun command can be used as an option in an HP-MPI launch command. Refer to Chapter Chapter 5: Submitting Jobs for information about using srun with HP-MPI.

Using the srun Command with LSF-HPC

The srun command can be used in an LSF-HPC launch command. Refer to Chapter Chapter 9: Using LSF for information about using srun with LSF-HPC.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.