A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I forgot the ones without the extension .tesh
[simgrid.git]
/
examples
/
gras
/
mutual_exclusion
/
simple_token
/
make_deployment.pl
diff --git
a/examples/gras/mutual_exclusion/simple_token/make_deployment.pl
b/examples/gras/mutual_exclusion/simple_token/make_deployment.pl
index
e863a89
..
2fba770
100755
(executable)
--- a/
examples/gras/mutual_exclusion/simple_token/make_deployment.pl
+++ b/
examples/gras/mutual_exclusion/simple_token/make_deployment.pl
@@
-10,7
+10,7
@@
my @host;
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
- next unless /<
cpu name
="([^"]*)"/; # "
+ next unless /<
host id
="([^"]*)"/; # "
push @host, $1;
}
push @host, $1;
}
@@
-25,8
+25,8
@@
if (! $nb_hosts) {
# map { print "$_\n" } @host;
print "<?xml version='1.0'?>\n";
# map { print "$_\n" } @host;
print "<?xml version='1.0'?>\n";
-print "<!DOCTYPE platform
_description SYSTEM \"surfxml
.dtd\">\n";
-print "<platform
_description version=\"1
\">\n\n";
+print "<!DOCTYPE platform
SYSTEM \"simgrid
.dtd\">\n";
+print "<platform
version=\"2
\">\n\n";
my $it_port=4000;
my $it_port=4000;
@@
-54,4
+54,4
@@
print " <argument value=\"4000\"/> <!-- port on which peer is listening -
print " <argument value=\"--create-token\"/> <!-- I'm first client, ie I have to create the token -->\n";
print " </process>\n\n";
print " <argument value=\"--create-token\"/> <!-- I'm first client, ie I have to create the token -->\n";
print " </process>\n\n";
-print "</platform
_description
>\n";
+print "</platform>\n";