From: Martin Quinson Date: Sat, 18 May 2019 13:52:38 +0000 (+0200) Subject: Finish the conversion to python of the hostfile generation X-Git-Tag: v3.22.4~110 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d46190942d57ad2d774185eda65d775b67219764 Finish the conversion to python of the hostfile generation - Fix the XML syntax to please the python stupid parser The previous one was not invalid, I think, but anyway - Be compatible with both Python 2 and Python 3 - The host order was changed in one example. --- diff --git a/examples/platforms/cluster_multi.xml b/examples/platforms/cluster_multi.xml index 110efda20d..6302d78d8a 100644 --- a/examples/platforms/cluster_multi.xml +++ b/examples/platforms/cluster_multi.xml @@ -3,11 +3,11 @@ @@ -30,11 +30,11 @@ + - Its sharing is FATPIPE, meaning that communications have no impact on each others. + - Any given comm can use the full provided bandwidth. + - + - This models the big links constituting the backbone of the internet, + - that users cannot saturate. + - Users' bandwidth is mostly limited by their outgoing connexion, + - not by the network backbone. + --> diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 8d6d8ad61e..cd36f81379 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -316,9 +316,9 @@ for elem in tree.findall(".//cluster"): m = re.match("^([^-]*?)-([^-]*)$", r) if m: for i in range(int(m.group(1)), int(m.group(2))): - print "{}{}{}".format(prefix, i, suffix) + print(prefix + str(i) + suffix) else: - print "{}{}{}".format(prefix, r, suffix) + print(prefix + r + suffix) ' < ${PLATFORM} >> ${HOSTFILE} fi UNROLLEDHOSTFILETMP=0 diff --git a/teshsuite/smpi/coll-alltoall/clusters.tesh b/teshsuite/smpi/coll-alltoall/clusters.tesh index f31c1dbccf..64fa937839 100644 --- a/teshsuite/smpi/coll-alltoall/clusters.tesh +++ b/teshsuite/smpi/coll-alltoall/clusters.tesh @@ -50,11 +50,11 @@ $ ${bindir:=.}/../../../smpi_script/bin/smpirun -map -platform ../../../examples > [rank 4] -> node-4.1core.org > [rank 5] -> node-5.1core.org > [rank 6] -> node-6.1core.org -> [rank 7] -> node-7.1core.org -> [rank 8] -> node-0.2cores.org -> [rank 9] -> node-1.2cores.org -> [rank 10] -> node-2.2cores.org -> [rank 11] -> node-3.2cores.org +> [rank 7] -> node-0.2cores.org +> [rank 8] -> node-1.2cores.org +> [rank 9] -> node-2.2cores.org +> [rank 10] -> node-3.2cores.org +> [rank 11] -> node-4.2cores.org > [0] sndbuf=[0 1 2 3 4 5 6 7 8 9 10 11 ] > [1] sndbuf=[12 13 14 15 16 17 18 19 20 21 22 23 ] > [2] sndbuf=[24 25 26 27 28 29 30 31 32 33 34 35 ]