diff --git a/bin/timings.sh b/bin/timings.sh new file mode 100755 index 0000000000000000000000000000000000000000..b85e6589dc9086b1488f788cccc86118e8a51e1e --- /dev/null +++ b/bin/timings.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# If an argument was given use it as the working directory +if [ $# -eq 1 ] +then + cd $1 +fi + +# Search for runnable executables +FILES=$(ls *.ini | grep -v '^verify') +for inifile in $FILES +do + line=$(grep ^"opcounter = " $inifile) + extract=${line##opcounter = } + UPPER=10 + if [ $extract -eq 1 ] + then + UPPER=1 + fi + COUNT=0 + while [ $COUNT -lt $UPPER ]; do + exec=${inifile%.ini} + MAXCORES=40 + mpirun --bind-to core -np $MAXCORES ./$exec $inifile + COUNT=$((COUNT + 1)) + done +done