3 ALDIR
="/usr/local/lib/afsload"
4 ALCHECK
="$ALDIR/afsload_check.pl"
5 ALRUN
="$ALDIR/afsload_run.pl"
6 ALPERL
="perl -I$ALDIR/perl"
8 if [ "x$MPIRUN" = "x" ] ; then
11 if [ "x$LIBMPI" = "x" ] ; then
12 LIBMPI
="/usr/lib/libmpi.so"
16 echo "Usage: $0 [-q] -p <nprocs> -t <test.conf>" >&2
17 echo -e "\t-q\tquiet/quick (do not test conf consistency)" >&2
18 echo -e "\t-p\tnumber of nodes/processes to run" >&2
19 echo -e "\t-t\ttest configuration" >&2
24 while getopts qp
:t
: opt
; do
33 if [ "x$procs" = "x" ] ||
[ "x$conf" = "x" ] ; then
39 if [ "x$quiet" = "x" ] ; then
40 if $ALPERL "$ALCHECK" -p "$procs" "$conf" ; then
47 if which "$MPIRUN" >/dev
/null
2>&1 ; then
51 echo "Cannot find $MPIRUN; set the MPIRUN environment variable to " >&2
52 echo "the mpirun command we should use." >&2
56 if [ ! -f "$LIBMPI" ] ; then
58 echo "Cannot find $LIBMPI; set the LIBMPI environment variable to " >&2
59 echo "the libmpi.so that we should run against." >&2
63 "$MPIRUN" -np "$procs" /bin
/sh
-c "LD_PRELOAD=$LIBMPI $ALPERL $ALRUN $conf"