Skip to content

Slurm: Single-Threaded Jobs

To submit a serial job that runs the script, requires a single CPU, 5000 MB of memory and 10 minutes of wall clock time you can either execute:

$ sbatch -p cpuonly -n 1 -t 10:00 --mem=5000

or add the following pragmas to the top of the file:

#SBATCH --ntasks=1
#SBATCH --time=3:00:00
#SBATCH --mem=5000
#SBATCH --job-name=simple

Note that command line options passed to sbatch overrule options set in job scripts.

Last update: May 31, 2021