examples

Examples

Batch system examples

We have made a few examples of how to use the batch system, both from the command line and through a batch submit file.

Overview of the Batch system examples subpages:

Examples, srun

Examples, srun

You can submit programs directly to the batch system with 'srun', giving all the command on the command line, though you should normally use a jobscript and submit it with 'sbatch', for larger or more complicated jobs.

More information about parameters and job submission files can be found on the Slurm submit file design page.

Running two tasks, each on a different core.

$ srun -A <account> -n 2 my_program

Run 6 tasks distributed across 2 nodes.

Updated: 2018-08-13, 14:22