64-core MPI sample job script-tyrone

 

	
#!/bin/sh
#Sample mpi job script for 64-core run
#PBS -N jobname
#PBS -l nodes=2:ppn=32:regular
#PBS -l walltime=24:00:00
cd /path_of_executable
NPROCS=`wc -l < $PBS_NODEFILE`
HOSTS=`cat $PBS_NODEFILE | uniq | tr '\n' "," | sed 's|,$||'` 
mpirun -np $NPROCS --host $HOSTS /name_of_executable