#!/bin/bash
#SBATCH -J life-mpi
#SBATCH -o life-mpi.%j.out
#SBATCH -p skx
#SBATCH -N 4
#SBATCH -n 192                  # 192 total tasks across 4 nodes = strictly 48 per node
#SBATCH -t 00:15:00
#SBATCH --mail-user=jteresco@siena.edu
#SBATCH --mail-type=all    # Send email at begin and end of job

export OMP_NUM_THREADS=1

for i in {1..10}; do
    ibrun ./mpiopenmp-life 192000 .5 10 | tail -n 2 | head -n -1 | awk '{print $5}' >> times.192
done
sort -n times.192 | head -n 1
rm -f times.192
