Skip to content
Snippets Groups Projects
Commit 015984ce authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Add a timings script

parent 2a36e44e
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment