| United States-English |
|
|
|
![]() |
HP XC System Software: User's Guide > Chapter 9 Using SLURMLaunching Jobs with the srun Command |
|
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 9-1 shows. 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 options of the srun command allow you control a SLURM job by:
The srun command has five distinct modes in which it can be used: 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. The srun command can be used as an option in an HP-MPI launch command. See Chapter Chapter 5: Submitting Jobs for information about using srun with HP-MPI. The srun command can be used in an LSF-HPC launch command. See Chapter Chapter 10: Using LSF-HPC for information about using srun with LSF-HPC. |
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||