]> git.somenet.org - pub/jan/parprog.git/blob - scan/runAll.sh
run script for mpiscan - needs testing!
[pub/jan/parprog.git] / scan / runAll.sh
1 #!/bin/bash
2
3 if [ ! -f numlist.bin ]; then
4         echo "generating numfile.bin"
5         dd if=/dev/urandom of=numlist.bin bs=1000 count=100000
6 fi
7
8 if [ ! -e build ]; then
9         echo "compiling stuff"
10         make
11 fi
12
13 STARTTS="`date --iso-8601=minutes`"
14
15 echo "STARTING: stats/raw/${STARTTS}"
16 mkdir -p "stats/raw/${STARTTS}"
17
18 mpirun -node 1-32 -nnp 1 build/scan &> stats/raw/tmp && echo "done" && mv stats/raw/tmp "stats/raw/${STARTTS}/scan"
19