Example 3 - Multiple Nodes, One Process per CPU

This is the classic MPI approach, where multiple machines are requested, one process per processor on each node is started using MPI. This is the way most MPI-enabled software is written to work.


#!/bin/bash

#SBATCH --job-name JOBNAME

#SBATCH --nodes=2

#SBATCH --ntasks-per-node=4

#SBATCH --mem-per-cpu=1g

#SBATCH --time=00:15:00

#SBATCH --account=test

#SBATCH --partition=standard

#SBATCH --mail-type=NONE

# COMMENT:The application(s) to execute along with its input arguments and options:
<insert commands here>

srun --cpu-bind=none hostname -s