A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix doc typo
[simgrid.git]
/
examples
/
README.rst
diff --git
a/examples/README.rst
b/examples/README.rst
index 45b314f322d86f20ffc839992faae29cece2be65..eff074bb037e187bbf8b2a8c0094ffc37daf513d 100644
(file)
--- a/
examples/README.rst
+++ b/
examples/README.rst
@@
-355,9
+355,9
@@
This example is very similar to the previous one, simply adding how to declare t
See also :cpp:func:`simgrid::s4u::Activity::wait_until()` and :cpp:func:`simgrid::s4u::Comm::wait_for()`.
See also :cpp:func:`simgrid::s4u::Activity::wait_until()` and :cpp:func:`simgrid::s4u::Comm::wait_for()`.
- .. example-tab:: examples/python/comm-wait
for/comm-waitfor
.py
+ .. example-tab:: examples/python/comm-wait
until/comm-waituntil
.py
- See also :py:func:`simgrid.Comm.wait_
for()` and :py:func:`simgrid.Comm.wait_any_for
()`
+ See also :py:func:`simgrid.Comm.wait_
until
()`
Suspending communications
^^^^^^^^^^^^^^^^^^^^^^^^^
Suspending communications
^^^^^^^^^^^^^^^^^^^^^^^^^
@@
-481,12
+481,12
@@
You can start asynchronous executions, just like you would fire background threa
.. example-tab:: examples/python/exec-async/exec-async.py
See also :py:func:`simgrid.this_actor.exec_init()`,
.. example-tab:: examples/python/exec-async/exec-async.py
See also :py:func:`simgrid.this_actor.exec_init()`,
- :py:func:`simgrid.
Activity
.start()`,
- :py:func:`simgrid.
Activity
.wait()`,
+ :py:func:`simgrid.
Exec
.start()`,
+ :py:func:`simgrid.
Exec
.wait()`,
:py:attr:`simgrid.Exec.remaining`,
:py:attr:`simgrid.Exec.remaining_ratio`,
:py:func:`simgrid.this_actor.exec_async()` and
:py:attr:`simgrid.Exec.remaining`,
:py:attr:`simgrid.Exec.remaining_ratio`,
:py:func:`simgrid.this_actor.exec_async()` and
- :py:func:`simgrid.
Activity
.cancel()`.
+ :py:func:`simgrid.
Exec
.cancel()`.
.. example-tab:: examples/c/exec-async/exec-async.c
.. example-tab:: examples/c/exec-async/exec-async.c
@@
-540,6
+540,10
@@
This allows simulating malleable tasks.
See also :cpp:func:`simgrid::s4u::this_actor::parallel_execute()`.
See also :cpp:func:`simgrid::s4u::this_actor::parallel_execute()`.
+ .. example-tab:: examples/python/exec-ptask/exec-ptask.py
+
+ See also :ref:`simgrid.this_actor.parallel_execute()`
+
DVFS and pstates
^^^^^^^^^^^^^^^^
DVFS and pstates
^^^^^^^^^^^^^^^^
@@
-558,7
+562,7
@@
of a host can then be accessed and changed from the program.
.. example-tab:: examples/python/exec-dvfs/exec-dvfs.py
.. example-tab:: examples/python/exec-dvfs/exec-dvfs.py
- See also :py:
attr:`Host.pstate_speed` and :py:func:`Host.set_pstate()
`.
+ See also :py:
func:`simgrid.Host.pstate_speed()` and :py:attr:`simgrid.Host.pstate
`.
.. example-tab:: examples/platforms/energy_platform.xml
.. example-tab:: examples/platforms/energy_platform.xml
@@
-666,6
+670,8
@@
Shows how to use :cpp:type:`simgrid::s4u::Semaphore` synchronization objects.
.. example-tab:: examples/cpp/synchro-semaphore/s4u-synchro-semaphore.cpp
.. example-tab:: examples/cpp/synchro-semaphore/s4u-synchro-semaphore.cpp
+ .. example-tab:: examples/python/synchro-semaphore/synchro-semaphore.py
+
.. example-tab:: examples/c/synchro-semaphore/synchro-semaphore.c
=============================
.. example-tab:: examples/c/synchro-semaphore/synchro-semaphore.c
=============================
@@
-737,6
+743,8
@@
failures in your code. See also :ref:`howto_churn`.
.. example-tab:: examples/c/platform-failures/platform-failures.c
.. example-tab:: examples/c/platform-failures/platform-failures.c
+ .. example-tab:: examples/python/platform-failures/platform-failures.py
+
.. group-tab:: XML
.. showfile:: examples/platforms/small_platform_failures.xml
.. group-tab:: XML
.. showfile:: examples/platforms/small_platform_failures.xml
@@
-965,7
+973,7
@@
Shows how to implement a classical communication pattern, where a token is excha
Master Workers
^^^^^^^^^^^^^^
Master Workers
^^^^^^^^^^^^^^
-Another good old example, where one Master acto
$ has a bunch of tasks to dispatch to a set of several Worker actors.
+Another good old example, where one Master acto
r has a bunch of tasks to dispatch to a set of several Worker actors.
This example is used in the :ref:`SimGrid tutorial <usecase_simalgo>`.
.. tabs::
This example is used in the :ref:`SimGrid tutorial <usecase_simalgo>`.
.. tabs::
@@
-989,6
+997,8
@@
This example is used in the :ref:`SimGrid tutorial <usecase_simalgo>`.
.. showfile:: examples/c/app-masterworker/app-masterworker.c
:language: cpp
.. showfile:: examples/c/app-masterworker/app-masterworker.c
:language: cpp
+ .. example-tab:: examples/python/app-masterworkers/app-masterworkers.py
+
Data diffusion
--------------
Data diffusion
--------------
@@
-1188,6
+1198,8
@@
the first level is used.
.. showfile:: examples/platforms/wifi.xml
:language: xml
.. showfile:: examples/platforms/wifi.xml
:language: xml
+
+
===============
Plugin Examples
===============
===============
Plugin Examples
===============