4 # USAGE: run.sh plaform nb_host (broadcast source?)
6 # This script takes a platform file and a number of hosts as argument.
7 # if a third argument is passed, this is the source of the broadcast
8 # (given as a number between 0 and nb_host-1).
10 # It generates the right deployment platform and run the experiment,
11 # only showing the last line of the run, showing the resulting time.
18 if [ -z $plat -o -z $nb_host ] ; then
19 # invalid argument. Display the comment at the script begining & exit
20 grep '^#\(\([^!]\)\|$\)' $0 | sed 's/# *//' >&2
23 if ! [ -e $plat ] ; then
24 echo "Platform file not found" >&2
28 echo "Generating the deployment"
29 ./make_deployment.pl $plat $nb_host $bcast > tmp_deployment_$nb_host
30 echo "Running the experiment"
31 ./all2all_simulator $plat tmp_deployment_$nb_host 2>&1 |tee run.log|grep "Congrat"
32 rm tmp_deployment_$nb_host