From: Martin Quinson Date: Tue, 11 Sep 2018 23:53:17 +0000 (+0200) Subject: SMPI tuto: Start stealing content from SMPI courseware X-Git-Tag: v3_21~99 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/734f9e5ac810cc97357f292240bc5758f213733a SMPI tuto: Start stealing content from SMPI courseware --- diff --git a/docs/source/tuto_smpi.rst b/docs/source/tuto_smpi.rst index f7f2476d6d..1fc7afa5d3 100644 --- a/docs/source/tuto_smpi.rst +++ b/docs/source/tuto_smpi.rst @@ -68,5 +68,47 @@ time is reported into the simulator. Describing Your Platform ======================== +As a SMPI user, you are supposed to provide a description of your +virtual platform, that is mostly a set of simulated hosts and network +links with some performance characteristics. SimGrid provides a plenty +of :ref:`documentation `_ and examples (in the +`examples/platform `_ +source directory), and this section only show a series of introductory +examples. + +Simple Example with 3 hosts +--------------------------- + +At the most basic level, you can describe your simulated platform as a +graph of hosts and network links. For instance: + +.. image:: /tuto_smpi/img/3hosts.png + :align: center + +.. hidden-code-block:: xml + :starthidden: True + :label: See the XML platform description file... + + + + + + + + + + + + + + + + + +In this XML, note the way in which hosts, links, and routes are +defined. All hosts are defined with a power (i.e., compute speed in +Gflops), and links with a latency (in us) and bandwidth (in MBytes per +second). Other units are possible and written as expected. By default, +routes are symmetrical. .. LocalWords: SimGrid diff --git a/docs/source/tuto_smpi/3hosts.xml b/docs/source/tuto_smpi/3hosts.xml new file mode 100644 index 0000000000..dc058953bb --- /dev/null +++ b/docs/source/tuto_smpi/3hosts.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/docs/source/tuto_smpi/img/3hosts.png b/docs/source/tuto_smpi/img/3hosts.png new file mode 100644 index 0000000000..fa21d52e3a Binary files /dev/null and b/docs/source/tuto_smpi/img/3hosts.png differ