#!/bin/bash
#SBATCH --job-name=myjob               # Job name
#SBATCH --nodes=1                      # Number of nodes
#SBATCH --ntasks=16                    # Must match -np below (max 36 on one node)
#SBATCH --cpus-per-task=1              # One core per MPI process
#SBATCH --hint=nomultithread           # One process per physical core
#SBATCH --output=output.log            # Output file
#SBATCH --error=error.log              # Error log file

cd       # path to the submission directory. e.g., cd <your home directory>/MPI
mpiexec -np 16 --bind-to core ./test-mpi