X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7d663fc05d8e729e364d82c3c7300cdc76cebdc0..2070401863db92e8198b0b8e5f29fbf0f7af2ff2:/src/smpi/smpi_win.hpp diff --git a/src/smpi/smpi_win.hpp b/src/smpi/smpi_win.hpp index 13dde7b92c..5beb90caab 100644 --- a/src/smpi/smpi_win.hpp +++ b/src/smpi/smpi_win.hpp @@ -35,13 +35,14 @@ class Win : public F2C, public Keyval { int rank_; // to identify owner for barriers in MPI_COMM_WORLD int mode_; // exclusive or shared lock int allocated_; + int dynamic_; public: static std::unordered_map keyvals_; static int keyval_id_; - Win(void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm, int allocated = 0); - Win(MPI_Info info, MPI_Comm comm) : Win(MPI_BOTTOM, 0, 1, info, comm) {}; + Win(void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm, int allocated = 0, int dynamic = 0); + Win(MPI_Info info, MPI_Comm comm) : Win(MPI_BOTTOM, 0, 1, info, comm, 0, 1) {}; ~Win(); int attach (void *base, MPI_Aint size); int detach (void *base); @@ -49,6 +50,7 @@ public: void get_group( MPI_Group* group); void set_name( char* name); int rank(); + int dynamic(); int start(MPI_Group group, int assert); int post(MPI_Group group, int assert); int complete();