X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b57a6cd86e76c696a0429ef9002b3162de002d1c..08027d3c5a9bf1d0bef122b2a9a1f0b037fde9b6:/src/smpi/include/smpi_comm.hpp diff --git a/src/smpi/include/smpi_comm.hpp b/src/smpi/include/smpi_comm.hpp index a332a6a1b3..ae30f6583a 100644 --- a/src/smpi/include/smpi_comm.hpp +++ b/src/smpi/include/smpi_comm.hpp @@ -31,19 +31,21 @@ class Comm : public F2C, public Keyval{ std::list rma_wins_; // attached windows for synchronization. std::string name_; MPI_Info info_; + int id_; public: static std::unordered_map keyvals_; static int keyval_id_; Comm() = default; - Comm(MPI_Group group, MPI_Topology topo, int smp = 0); + Comm(MPI_Group group, MPI_Topology topo, int smp = 0, int id=MPI_UNDEFINED); int dup(MPI_Comm* newcomm); int dup_with_info(MPI_Info info, MPI_Comm* newcomm); MPI_Group group(); MPI_Topology topo() { return topo_; } int size(); int rank(); + int id(); void get_name(char* name, int* len); void set_name(const char* name); MPI_Info info();