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.

#SBATCH --job-name=multicore_job
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=00:15:00

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:

Print Article


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