From 164eebdc6ea81bd07dc241edf882ec53084c2c52 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 21 Jan 2023 21:34:28 +0100 Subject: [PATCH] Add another example to the doc --- examples/README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/README.rst b/examples/README.rst index e8594842cf..e3cd9fe740 100644 --- a/examples/README.rst +++ b/examples/README.rst @@ -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 `. 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 ================= -- 2.20.1