Multi-Core Job Example

Below is an example script which will submit for 4 cores on a single compute node. Feel free to copy and paste it as a job template.
 

#!/bin/bash
#SBATCH --job-name=multicore_job
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=00:15:00
#SBATCH --mail-type=BEGIN,END,FAIL

mpirun -n 4 ./program_name <optional args>

When you are ready to submit the job, you can do so by issuing the sbatch command:

sbatch <jobscript>

For more information about job parameters, please take a look at:

https://slurm.schedmd.com/pdfs/summary.pdf

Details

Article ID: 132172
Created
Thu 5/6/21 10:29 AM
Modified
Wed 6/23/21 6:40 PM