#!/bin/sh

MASTER=`hostname`
SLAVE=$1

if [ "${MASTER}" = "sigma.bgsu.edu" ]; then
export CCOPT=-64
fi

for msg_size in 100 1000 10000; do
  for data_format in Raw Default InPlace; do
    perl ./tim_mod.pl ${SLAVE} ${msg_size} ${data_format}
    rm $HOME/pvm3/bin/$PVM_ARCH/timing
    make PROG=timing
    echo Running test ${SLAVE} ${msg_size} ${data_format}
    timing
    echo Done
    echo ------------------------------------------------------------------------------- 
  done
done
