X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79b624367855c4639e05465472e2a94f69d68d36..32f4ca6248c287dbd1e5f0ef88e82370a3a72ecf:/docs/source/Tutorial_Algorithms.rst diff --git a/docs/source/Tutorial_Algorithms.rst b/docs/source/Tutorial_Algorithms.rst index 7861435b30..11eebf7d41 100644 --- a/docs/source/Tutorial_Algorithms.rst +++ b/docs/source/Tutorial_Algorithms.rst @@ -22,41 +22,40 @@ actors, but posted onto a |Mailbox|_ that serve as rendez-vous point between communicating actors. .. |Actors| replace:: **Actors** -.. _Actors: api/classsimgrid_1_1s4u_1_1Actor.html +.. _Actors: app_s4u.html#s4u-actor .. |Activities| replace:: **Activities** -.. _Activities: api/classsimgrid_1_1s4u_1_1Activity.html +.. _Activities: app_s4u.html#s4u-activity .. |Hosts| replace:: **Hosts** -.. _Hosts: api/classsimgrid_1_1s4u_1_1Host.html +.. _Hosts: app_s4u.html#s4u-host .. |Links| replace:: **Links** -.. _Links: api/classsimgrid_1_1s4u_1_1Link.html +.. _Links: app_s4u.html#s4u-link .. |Storages| replace:: **Storages** -.. _Storages: api/classsimgrid_1_1s4u_1_1Storage.html +.. _Storages: app_s4u.html#s4u-storage .. |VirtualMachines| replace:: **VirtualMachines** -.. _VirtualMachines: api/classsimgrid_1_1s4u_1_1VirtualMachine.html +.. _VirtualMachines: app_s4u.html#s4u-virtualmachine .. |Host| replace:: **Host** -.. _Host: api/classsimgrid_1_1s4u_1_1Host.html +.. _Host: app_s4u.html#s4u-host .. |Link| replace:: **Link** -.. _Link: api/classsimgrid_1_1s4u_1_1Link.html +.. _Link: app_s4u.html#s4u-link .. |Mailbox| replace:: **Mailbox** -.. _Mailbox: api/classsimgrid_1_1s4u_1_1Mailbox.html +.. _Mailbox: app_s4u.html#s4u-mailbox .. |Barrier| replace:: **Barrier** -.. _Barrier: api/classsimgrid_1_1s4u_1_1Barrier.html +.. _Barrier: app_s4u.html#s4u-barrier .. |ConditionVariable| replace:: **ConditionVariable** -.. _ConditionVariable: api/classsimgrid_1_1s4u_1_1ConditionVariable.html +.. _ConditionVariable: app_s4u.html#s4u-conditionvariable .. |Mutex| replace:: **Mutex** -.. _Mutex: api/classsimgrid_1_1s4u_1_1Mutex.html - +.. _Mutex: app_s4u.html#s4u-mutex **In the remainder of this tutorial**, you will discover a simple yet fully functioning example of SimGrid simulation: the Master/Workers @@ -174,12 +173,12 @@ examples of platforms in the archive under ``examples/platforms``. .. |api_s4u_NetZone| image:: /img/extlink.png :align: middle :width: 12 -.. _api_s4u_NetZone: api/classsimgrid_1_1s4u_1_1NetZone.html#class-documentation +.. _api_s4u_NetZone: app_s4u.html#s4u-netzone .. |api_s4u_Link| image:: /img/extlink.png :align: middle :width: 12 -.. _api_s4u_Link: api/classsimgrid_1_1s4u_1_1Link.html#class-documentation +.. _api_s4u_Link: app_s4u.html#s4u-link .. literalinclude:: ../../examples/platforms/small_platform.xml :language: xml @@ -203,6 +202,8 @@ This time, we have all parts: once the program is compiled, we can execute it as follows. Note how the XBT_INFO() requests turned into informative messages. +.. "WARNING: Over dedent has detected" is expected here as we remove the $ marker this way + .. literalinclude:: ../../examples/s4u/app-masterworkers/s4u-app-masterworkers.tesh :language: shell :start-after: s4u-app-masterworkers-fun @@ -334,12 +335,12 @@ recompile it when you first log in: Using your Computer Natively ............................ -To take the tutorial on your machine, you first need to :ref:`install -SimGrid `, a C++ compiler and also ``pajeng`` to visualize -the traces. You may want to install `Vite -`_ to get a first glance at the -traces. The provided code template requires cmake to compile. On -Debian and Ubuntu for example, you can get them as follows: +To take the tutorial on your machine, you first need to :ref:`install +a recent version of SimGrid `, a C++ compiler and also +``pajeng`` to visualize the traces. You may want to install `Vite +`_ to get a first glance at the traces. +The provided code template requires cmake to compile. On Debian and +Ubuntu for example, you can get them as follows: .. code-block:: shell @@ -481,9 +482,8 @@ timing. ``put()`` and ``get()`` are matched regardless of their initiators' location and then the real communication occures between the involved parties. -Please refer to the full `API of Mailboxes -`_ for -more details. +Please refer to the full `Mailboxes' documentation +`_ for more details. Lab 2: Using the Whole Platform