diff --git a/bench-accel/updateref.sh b/bench-accel/updateref.sh index d76c2be4d..73cd5b7bb 100755 --- a/bench-accel/updateref.sh +++ b/bench-accel/updateref.sh @@ -1,22 +1,27 @@ #!/bin/sh -dirs=`/bin/ls -d bench_*` +if [ $# == 0 ] +then + dirs=`/bin/ls -d bench_*` +else + dirs="$@" +fi for d in $dirs do \ pushd $d s=log.0xOpenMP_1xMPI t=`echo $s | sed -e 's/log./ref./'` if [ ! -f $s ] then popd continue fi egrep -v '(LAMMPS|OpenMP|MPI|serial|Memory|Loop|Perform|FFT)' $s \ | sed -e 's/-0\.0000000000/0.0000000000 /g' \ -e '/^Section.*/,$d' -e '/^.*Pair time.*/,$d' \ | gzip -9 > refoutput/${t}.gz popd done