]> git.somenet.org - pub/astra/parallel.git/blob - scan/runAll.sh
update merge
[pub/astra/parallel.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