]> AND Public Git Repository - simgrid.git/blobdiff - examples/gras/all2all/run.sh
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / examples / gras / all2all / run.sh
index e27ac159e1f9242dd95e68003cb2e894e8d84a7b..36d5147878880aef9d52d78e7b0003d77523c531 100755 (executable)
@@ -1,15 +1,18 @@
 #! /bin/bash
 
 #
-# USAGE: run.sh  plaform  nb_host
+# USAGE: run.sh  plaform  nb_host (broadcast source?)
 #
 # This script takes a platform file and a number of hosts as argument.
+#  if a third argument is passed, this is the source of the broadcast 
+#  (given as a number between 0 and nb_host-1).
 #
 # It generates the right deployment platform and run the experiment, 
 #  only showing the last line of the run, showing the resulting time.
 
 plat=$1
 nb_host=$2
+bcast=$3
 set -e
 
 if [ -z $plat -o -z $nb_host ] ; then
@@ -23,7 +26,7 @@ if ! [ -e $plat ] ; then
 fi
 
 echo "Generating the deployment"
-./make_deployment.pl $plat $nb_host > tmp_deployment_$nb_host
+./make_deployment.pl $plat $nb_host $bcast > tmp_deployment_$nb_host
 echo "Running the experiment"
 ./all2all_simulator $plat tmp_deployment_$nb_host 2>&1 |tee run.log|grep "Congrat"
 rm tmp_deployment_$nb_host