#! /bin/sh # openmpi3: #mpirun_args="-n 4 -H Node-001,Node-002,Node-003,Node-004" # mpich: #mpirun_args="-n 4 -hosts Node-001,Node-002,Node-003,Node-004" # intel (default processes-per-node = #cores): mpirun_args="-n 4 -ppn 1 -hosts Node-001,Node-002,Node-003,Node-004" BV_opts="-r" echo "intel" echo "mpirun_args = $mpirun_args" echo "BV_opts = $BV_opts" for nx in 20 24 30 do echo "nx = $nx" for c in 7 9 11 13 15 do echo "c = $c" time -p ./BV.sh "$mpirun_args" "$BV_opts -c$c $nx" done done