1 /* Copyright (c) 2010, 2013-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SMPI_WIN_HPP_INCLUDED
8 #define SMPI_WIN_HPP_INCLUDED
16 class Win : public F2C {
24 std::vector<MPI_Request> *requests_;
27 MPI_Win* connected_wins_;
31 int count_; //for ordering the accs
34 Win(void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm);
36 void get_name( char* name, int* length);
37 void get_group( MPI_Group* group);
38 void set_name( char* name);
39 int start(MPI_Group group, int assert);
40 int post(MPI_Group group, int assert);
43 int fence(int assert);
44 int put( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
45 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype);
46 int get( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
47 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype);
48 int accumulate( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
49 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Op op);
50 static Win* f2c(int id);