#!/bin/bash -l #$ -l h_rt=12:00:00 #$ -N mpi_test # When asking for only 1 MPI node this job can run on ANY # available compute node with at least 16 cores, not just # the dedicated MPI nodes. #$ -pe mpi_16_tasks_per_node 16 module load openmpi/3.1.4 # $NSLOTS is always set to the number of cores assigned to the # job, in this case 16. As all assigned cores will be used, # the only mpirun argument that is needed is the number of processes, # -np mpirun -np $NSLOTS ./hello