Slurm: Single-Threaded Jobs¶
To submit a serial job that runs the script job.sh
, 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 job.sh
or add the following pragmas to the top of the job.sh
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:
September 28, 2023