From cefe331ecae2fd199e3a9e32596c63ab2d6ff6b8 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Mon, 30 Jan 2012 13:17:00 +0100 Subject: [PATCH] run script for mpiscan - needs testing! --- scan/runAll.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scan/runAll.sh diff --git a/scan/runAll.sh b/scan/runAll.sh new file mode 100755 index 0000000..7de8905 --- /dev/null +++ b/scan/runAll.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +if [ ! -f numlist.bin ]; then + echo "generating numfile.bin" + dd if=/dev/urandom of=numlist.bin bs=1000 count=100000 +fi + +if [ ! -e build ]; then + echo "compiling stuff" + make +fi + +STARTTS="`date --iso-8601=minutes`" + +echo "STARTING: stats/raw/${STARTTS}" +mkdir -p "stats/raw/${STARTTS}" + +mpirun -node 1-32 -nnp 1 build/scan &> stats/raw/tmp && echo "done" && mv stats/raw/tmp "stats/raw/${STARTTS}/scan" + -- 2.43.0