4 # USAGE: run.sh plaform nb_host
6 # This script takes a platform file and a number of hosts as argument.
8 # It generates the right deployment platform and run the experiment,
9 # only showing the last line of the run, showing the resulting time.
15 if [ -z $plat -o -z $nb_host ] ; then
16 # invalid argument. Display the comment at the script begining & exit
17 grep '^#\(\([^!]\)\|$\)' $0 | sed 's/# *//' >&2
20 if ! [ -e $plat ] ; then
21 echo "Platform file not found" >&2
25 echo "Generating the deployment"
26 ./make_deployment.pl $plat $nb_host > tmp_deployment_$nb_host
27 echo "Running the experiment"
28 ./all2all_simulator $plat tmp_deployment_$nb_host 2>&1 |tee run.log|grep "Congrat"
29 rm tmp_deployment_$nb_host