X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e40c6160ce5da38cdc78427d18b619348b3961c7..c5544435bde9e10652726e77a8da39298d5064be:/src/smpi/include/smpi_comm.hpp diff --git a/src/smpi/include/smpi_comm.hpp b/src/smpi/include/smpi_comm.hpp index 5cb1b7a7ff..6e30cb62fa 100644 --- a/src/smpi/include/smpi_comm.hpp +++ b/src/smpi/include/smpi_comm.hpp @@ -28,7 +28,7 @@ class Comm : public F2C, public Keyval{ int is_uniform_; int* non_uniform_map_; //set if smp nodes have a different number of processes allocated int is_blocked_;// 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 recursivity std::list rma_wins_; // attached windows for synchronization. public: @@ -36,7 +36,7 @@ class Comm : public F2C, public Keyval{ static int keyval_id_; Comm() = default; - Comm(MPI_Group group, MPI_Topology topo); + Comm(MPI_Group group, MPI_Topology topo, int smp=0); int dup(MPI_Comm* newcomm); MPI_Group group(); MPI_Topology topo(); @@ -51,6 +51,7 @@ class Comm : public F2C, public Keyval{ MPI_Comm get_intra_comm(); int is_uniform(); int is_blocked(); + int is_smp_comm(); MPI_Comm split(int color, int key); void cleanup_smp(); void ref();