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
Delete unusable default constructor.
[simgrid.git]
/
examples
/
README.rst
diff --git
a/examples/README.rst
b/examples/README.rst
index
a91878f
..
9fe8b5f
100644
(file)
--- a/
examples/README.rst
+++ b/
examples/README.rst
@@
-319,6
+319,8
@@
the simulators (as detailed in Section :ref:`options`).
.. example-tab:: examples/cpp/comm-pingpong/s4u-comm-pingpong.cpp
.. example-tab:: examples/cpp/comm-pingpong/s4u-comm-pingpong.cpp
+ .. example-tab:: examples/python/comm-pingpong/comm-pingpong.py
+
.. example-tab:: examples/c/comm-pingpong/comm-pingpong.c
.. example-tab:: examples/c/comm-pingpong/comm-pingpong.c
@@
-371,6
+373,11
@@
The ``suspend()`` and ``resume()`` functions block the progression of a given co
:cpp:func:`simgrid::s4u::Activity::resume()` and
:cpp:func:`simgrid::s4u::Activity::is_suspended()`.
:cpp:func:`simgrid::s4u::Activity::resume()` and
:cpp:func:`simgrid::s4u::Activity::is_suspended()`.
+ .. example-tab:: examples/python/comm-suspend/comm-suspend.py
+
+ See also :py:func:`simgrid.Comm::suspend()` and
+ :py:func:`simgrid.Comm.resume()`.
+
Waiting for all communications in a set
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Waiting for all communications in a set
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@
-420,6
+427,9
@@
The ``test_any()`` returns whether at least one activity of the set has complete
See also :cpp:func:`simgrid::s4u::Comm::test_any()`.
See also :cpp:func:`simgrid::s4u::Comm::test_any()`.
+ .. example-tab:: examples/python/comm-testany/comm-testany.py
+
+ See also :py:func:`simgrid.Comm.test_any()`.
.. _s4u_ex_execution:
.. _s4u_ex_execution:
@@
-471,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
@@
-507,6
+517,8
@@
You can start executions on remote hosts, or even change the host on which they
See also :cpp:func:`sg_exec_set_host()`.
See also :cpp:func:`sg_exec_set_host()`.
+.. _s4u_ex_ptasks:
+
Parallel executions
^^^^^^^^^^^^^^^^^^^
Parallel executions
^^^^^^^^^^^^^^^^^^^
@@
-546,7
+558,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