X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f05aa676252e50dc1f789f5623a177deb733c66..1f0122b5308bf080e16c9ae72134609a983fcb7d:/examples/gras/all2all/make_deployment.pl diff --git a/examples/gras/all2all/make_deployment.pl b/examples/gras/all2all/make_deployment.pl new file mode 100755 index 0000000000..cf0e4c063f --- /dev/null +++ b/examples/gras/all2all/make_deployment.pl @@ -0,0 +1,80 @@ +#! /usr/bin/perl + +use strict; + +sub usage { + print STDERR <) { + next unless /\n"; + $it_host ++; + if ($it_host == scalar @host) { + $it_host=0; + $it_port++; + } +} + +# +# and now, really generate the file + +print "\n"; +print "\n"; +print "\n\n"; + +# reset iterators +$it_port=4000; +$it_host=0; + +for (my $i=0; $i<$nb_hosts; $i++) { + print " \n"; + print $receivers; + print " \n"; + + print " \n"; + print " \n"; + print " \n\n"; + + $it_host ++; + if ($it_host == scalar @host) { + $it_host=0; + $it_port++; + } +} + +print "\n";