Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add another example to the doc
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 21 Jan 2023 20:34:28 +0000 (21:34 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 21 Jan 2023 20:34:28 +0000 (21:34 +0100)
examples/README.rst

index e859484..e3cd9fe 100644 (file)
@@ -534,6 +534,7 @@ Remote execution
 ^^^^^^^^^^^^^^^^
 
 You can start executions on remote hosts, or even change the host on which they occur during their execution.
+This is naturally not very realistic, but it's something handy to have.
 
 .. tabs::
 
@@ -576,6 +577,16 @@ This allows simulating malleable tasks.
 
       See also :ref:`simgrid.this_actor.parallel_execute()`
 
+Ptasks play well with the host energy plugin, as shown in this example.
+There is not much new compared to the above ptask example or the
+:ref:`examples about energy <s4u_ex_energy>`. It just works.
+
+.. tabs::
+
+   .. example-tab:: examples/cpp/energy-exec-ptask/s4u-energy-exec-ptask.cpp
+
+   .. example-tab:: examples/c/energy-exec-ptask/energy-exec-ptask.c
+
 .. _s4u_ex_dvfs:
 
 DVFS and pstates
@@ -839,6 +850,8 @@ messages can travel through the link at the same time.
 
       See also :py:func:`simgrid.Link.set_concurrency_limit()`.
 
+.. _s4u_ex_energy:
+
 =================
 Energy Simulation
 =================