The following example script specifies a partition, time limit, memory allocation and number of cores. All your scripts should specify values for these four parameters. You can also set additional parameters as shown, such as job name, output file and email notification. For more details check the sbatch man page. Cluster specific hardware chart
#!/bin/bash
#SBATCH --job-name=test
#SBATCH --partition=dawson # partition (unrestricted options are dawson, ellis and kruskal)
#SBATCH -N 1 # number of nodes
#SBATCH -n 1 # number of cores
#SBATCH --mem 100 # memory to be used per node
#SBATCH -t 0-2:00 # time (D-HH:MM)
#SBATCH -o slurm.%N.%j.out # STDOUT
#SBATCH -e slurm.%N.%j.err # STDERR
#SBATCH --mail-type=END,FAIL # notifications for job done & fail
#SBATCH --mail-user=myemail@pppl.gov # send-to address
module
load gcc/6.1.0
module load openmpi/1.10.3
# 'Normal' MPI
run command
#
#mpiexec ./mpihello
To submit your job:
sbatch myscript.sh