Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Start to modernize the remaining old simcalls related to comms
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 1 Feb 2022 10:32:05 +0000 (11:32 +0100)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 1 Feb 2022 10:32:05 +0000 (11:32 +0100)
commit543a9d7e86cfdffac751091543019b9bdaffff6b
treefc0fd06f83bda526ccaf574c4b0e0ad7c8eeac4d
parent6971127a604a5cb00a04196276e51e6044a64bdf
Start to modernize the remaining old simcalls related to comms
+ refactor wait, test, waitany, and testany at the activity level
+ use observers for all the simcalls related to these operations
+ add 2 new examples that allows to test or wait for the completion of
any kind of activities stored in a single vector
+ simplify another example thanks to that
+ implement the to_string and dot_label functions in the observers
instead of in mc::Api

This (big) commit breaks the MC has the dependency check still mixes
old and modern simcalls and is thus borken. This is a work in progress
for the greater good, and towards SG4.
35 files changed:
MANIFEST.in
examples/c/actor-exiting/actor-exiting.tesh
examples/cpp/CMakeLists.txt
examples/cpp/activity-testany/s4u-activity-testany.cpp [new file with mode: 0644]
examples/cpp/activity-testany/s4u-activity-testany.tesh [new file with mode: 0644]
examples/cpp/activity-waitany/s4u-activity-waitany.cpp [new file with mode: 0644]
examples/cpp/activity-waitany/s4u-activity-waitany.tesh [new file with mode: 0644]
examples/cpp/actor-exiting/s4u-actor-exiting.tesh
examples/cpp/io-dependent/s4u-io-dependent.cpp
examples/cpp/io-dependent/s4u-io-dependent.tesh
examples/cpp/mc-bugged1/s4u-mc-bugged1.tesh
include/simgrid/s4u/Activity.hpp
include/simgrid/s4u/Comm.hpp
src/kernel/activity/ActivityImpl.cpp
src/kernel/activity/ActivityImpl.hpp
src/kernel/activity/CommImpl.cpp
src/kernel/activity/CommImpl.hpp
src/kernel/activity/ExecImpl.cpp
src/kernel/activity/ExecImpl.hpp
src/kernel/activity/IoImpl.cpp
src/kernel/activity/IoImpl.hpp
src/kernel/actor/ActorImpl.cpp
src/kernel/actor/SimcallObserver.cpp
src/kernel/actor/SimcallObserver.hpp
src/mc/api.cpp
src/mc/api.hpp
src/mc/mc_base.cpp
src/mc/remote/AppSide.cpp
src/msg/msg_comm.cpp
src/msg/msg_task.cpp
src/s4u/s4u_Activity.cpp
src/s4u/s4u_Comm.cpp
src/s4u/s4u_Exec.cpp
src/s4u/s4u_Io.cpp
src/smpi/mpi/smpi_request.cpp