#!/bin/bash
#SBATCH -J life-hybrid
#SBATCH -o life-hybrid.%j.out
#SBATCH -p skx
#SBATCH -N 4
#SBATCH -n 4                    # 4 total tasks across 4 nodes = strictly 1 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=48
export OMP_PLACES=cores
export OMP_PROC_BIND=close

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