From: Frederic Suter Date: Wed, 25 Sep 2019 15:36:52 +0000 (+0200) Subject: Merge branch 'master' into disk X-Git-Tag: v3.24~67 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1d381feb9b44e9d94e608c9b389c453128d44dff?hp=21fe278c8460849931b37ccde22e944edec46f71 Merge branch 'master' into disk --- diff --git a/ChangeLog b/ChangeLog index 22c2c5d18b..55e1c9cda5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -60,6 +60,7 @@ Fixed bugs (FG#.. -> framagit bugs; FG!.. -> framagit merge requests): - FG!15: execute_flops now logs compute - FG!16: Fix the ns-3 bindings when several flows are simultaneously finishing - FG!17: ns-3: unblock the right number of communications + others issues + - FG!18: Improving the performance of the ns-3 bindings - GH#207: Error in the throughput of TCP transfer ---------------------------------------------------------------------------- diff --git a/src/smpi/include/smpi_actor.hpp b/src/smpi/include/smpi_actor.hpp index 95e34655c8..de11f688ec 100644 --- a/src/smpi/include/smpi_actor.hpp +++ b/src/smpi/include/smpi_actor.hpp @@ -28,7 +28,7 @@ class ActorExt { std::string instance_id_; bool replaying_ = false; /* is the process replaying a trace */ smpi_trace_call_location_t trace_call_loc_; - s4u::ActorPtr actor_ = nullptr; + s4u::Actor* actor_ = nullptr; smpi_privatization_region_t privatized_region_ = nullptr; #ifdef __linux__ int optind_ = 0; /*for getopt replacement */ @@ -48,7 +48,7 @@ class ActorExt { public: static simgrid::xbt::Extension EXTENSION_ID; - explicit ActorExt(s4u::ActorPtr actor); + explicit ActorExt(s4u::Actor* actor); ActorExt(const ActorExt&) = delete; ActorExt& operator=(const ActorExt&) = delete; ~ActorExt(); diff --git a/src/smpi/internals/smpi_actor.cpp b/src/smpi/internals/smpi_actor.cpp index d363eb5879..8e6f16cd64 100644 --- a/src/smpi/internals/smpi_actor.cpp +++ b/src/smpi/internals/smpi_actor.cpp @@ -21,7 +21,7 @@ namespace simgrid { namespace smpi { simgrid::xbt::Extension ActorExt::EXTENSION_ID; -ActorExt::ActorExt(s4u::ActorPtr actor) : actor_(actor) +ActorExt::ActorExt(s4u::Actor* actor) : actor_(actor) { if (not simgrid::smpi::ActorExt::EXTENSION_ID.valid()) simgrid::smpi::ActorExt::EXTENSION_ID = simgrid::s4u::Actor::extension_create(); @@ -55,8 +55,6 @@ ActorExt::ActorExt(s4u::ActorPtr actor) : actor_(actor) ActorExt::~ActorExt() { - TRACE_smpi_finalize(actor_->get_pid()); - if (comm_self_ != MPI_COMM_NULL) simgrid::smpi::Comm::destroy(comm_self_); if (comm_intra_ != MPI_COMM_NULL) @@ -240,7 +238,7 @@ void ActorExt::init() // set the process attached to the mailbox ext->mailbox_small_->set_receiver(ext->actor_); - XBT_DEBUG("<%ld> SMPI process has been initialized: %p", ext->actor_->get_pid(), ext->actor_.get()); + XBT_DEBUG("<%ld> SMPI process has been initialized: %p", ext->actor_->get_pid(), ext->actor_); } int ActorExt::get_optind()