Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an example of use of the previous interface.
[simgrid.git] / examples / smpi / smpi_msg_masterslave / deployment_masterslave_mailbox_smpi.xml
diff --git a/examples/smpi/smpi_msg_masterslave/deployment_masterslave_mailbox_smpi.xml b/examples/smpi/smpi_msg_masterslave/deployment_masterslave_mailbox_smpi.xml
new file mode 100644 (file)
index 0000000..0dc4672
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version='1.0'?>
+<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
+<platform version="3">
+  <!-- The master process (with some arguments) -->
+  <process host="Tremblay" function="master">
+     <argument value="20"/>       <!-- Number of tasks -->
+     <argument value="50000000"/>  <!-- Computation size of tasks -->
+     <argument value="1000000"/>   <!-- Communication size of tasks -->
+     <argument value="1"/>         <!-- Number of slaves -->
+  </process>
+  <!-- The slave processes (with mailbox to listen on as argument) -->
+  <process host="Tremblay" function="slave">
+    <argument value="0"/>
+  </process>
+  <process host="Ginette" function="master_mpi">
+    <argument value="master_mpi"/>
+    <argument value="0"/>
+  </process>
+  <process host="Bourassa" function="master_mpi">
+    <argument value="master_mpi"/>
+    <argument value="1"/>
+  </process>
+  <process host="Ginette" function="alltoall_mpi">
+    <argument value="alltoall_mpi"/>
+    <argument value="0"/>
+  </process>
+  <process host="Bourassa" function="alltoall_mpi">
+    <argument value="alltoall_mpi"/>
+    <argument value="1"/>
+  </process>
+  <process host="Jupiter" function="alltoall_mpi">
+    <argument value="alltoall_mpi"/>
+    <argument value="2"/>
+  </process>
+  <process host="Fafard" function="alltoall_mpi">
+    <argument value="alltoall_mpi"/>
+    <argument value="3"/>
+  </process>
+</platform>