From: Arnaud Giersch Date: Mon, 23 Dec 2019 13:55:49 +0000 (+0100) Subject: Merge branch 'master' of framagit.org:simgrid/simgrid X-Git-Tag: v3.25~236 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c587485ee2aae6b2c54ed80656cbdc4e3ba8d157?hp=-c Merge branch 'master' of framagit.org:simgrid/simgrid --- c587485ee2aae6b2c54ed80656cbdc4e3ba8d157 diff --combined src/mc/inspect/Frame.hpp index a9526f45f0,51ca5624db..385eca637a --- a/src/mc/inspect/Frame.hpp +++ b/src/mc/inspect/Frame.hpp @@@ -23,6 -23,8 +23,6 @@@ namespace mc /** Debug information about a given function or scope within a function */ class Frame { public: - Frame() = default; - /** Kind of scope (DW_TAG_subprogram, DW_TAG_inlined_subroutine, etc.) */ int tag = DW_TAG_invalid; @@@ -30,7 -32,7 +30,7 @@@ std::string name; /** Range of instruction addresses for which this scope is valid */ - simgrid::xbt::Range range = {0, 0}; + simgrid::xbt::Range range{0, 0}; simgrid::dwarf::LocationList frame_base_location; @@@ -56,7 -58,6 +56,6 @@@ void* frame_base(unw_cursor_t& unw_cursor) const; void remove_variable(char* name); }; - } // namespace mc } // namespace simgrid diff --combined src/smpi/include/smpi_comm.hpp index 1febed343e,5c9c915cd8..06280b2a5b --- a/src/smpi/include/smpi_comm.hpp +++ b/src/smpi/include/smpi_comm.hpp @@@ -21,20 -21,20 +21,20 @@@ class Comm : public F2C, public Keyval MPI_Group group_; SMPI_Topo_type topoType_ = MPI_INVALID_TOPO; MPI_Topology topo_; // to be replaced by an union - int refcount_ = 1; - MPI_Comm leaders_comm_; // inter-node communicator - MPI_Comm intra_comm_; // intra-node communicator . For MPI_COMM_WORLD this can't be used, as var is global. - // use an intracomm stored in the process data instead - int* leaders_map_ = nullptr; // who is the leader of each process + int refcount_ = 1; + MPI_Comm leaders_comm_ = MPI_COMM_NULL; // inter-node communicator + MPI_Comm intra_comm_ = MPI_COMM_NULL; // intra-node communicator. For MPI_COMM_WORLD this can't be used, as var is + // global. Use an intracomm stored in the process data instead + int* leaders_map_ = nullptr; // who is the leader of each process int is_uniform_ = 1; int* non_uniform_map_ = nullptr; // set if smp nodes have a different number of processes allocated int is_blocked_ = 0; // are ranks allocated on the same smp node contiguous ? int is_smp_comm_; // set to 0 in case this is already an intra-comm or a leader-comm to avoid recursion std::list rma_wins_; // attached windows for synchronization. std::string name_; - MPI_Info info_; + MPI_Info info_ = MPI_INFO_NULL; int id_; - MPI_Errhandler errhandler_; + MPI_Errhandler errhandler_ = MPI_ERRORS_ARE_FATAL; public: static std::unordered_map keyvals_; diff --combined src/smpi/mpi/smpi_comm.cpp index ac061c0115,b9cee01a5b..85267e8749 --- a/src/smpi/mpi/smpi_comm.cpp +++ b/src/smpi/mpi/smpi_comm.cpp @@@ -30,7 -30,9 +30,6 @@@ int Comm::keyval_id_=0 Comm::Comm(MPI_Group group, MPI_Topology topo, int smp, int in_id) : group_(group), topo_(topo),is_smp_comm_(smp), id_(in_id) { - errhandler_ = MPI_ERRORS_ARE_FATAL; - intra_comm_ = MPI_COMM_NULL; - leaders_comm_ = MPI_COMM_NULL; - info_ = MPI_INFO_NULL; errhandler_->ref(); //First creation of comm is done before SIMIX_run, so only do comms for others if(in_id==MPI_UNDEFINED && smp==0 && this->rank()!=MPI_UNDEFINED ){