Rev | Line | |
---|
[1502] | 1 | #ifndef EP_INTERCOMM_HPP_INCLUDED |
---|
| 2 | #define EP_INTERCOMM_HPP_INCLUDED |
---|
| 3 | |
---|
| 4 | typedef std::pair< int, int > SIZE_RANK_INFO; // < rank, size> |
---|
| 5 | typedef std::vector< std::pair<int, int> > RANK_MAP; // at(ep_rank) = <ep_rank_local, mpi_rank> |
---|
| 6 | typedef std::map<int, std::pair<int, int> > EP_RANK_MAP; // key(ep_rank) = <ep_rank_local, mpi_rank> |
---|
[1511] | 7 | typedef std::map<int, std::pair< int, std::pair<int, int> > > INTERCOMM_RANK_MAP; |
---|
[1502] | 8 | |
---|
| 9 | namespace ep_lib |
---|
| 10 | { |
---|
| 11 | |
---|
| 12 | class ep_comm; |
---|
| 13 | |
---|
| 14 | class ep_intercomm |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | |
---|
| 18 | void *mpi_inter_comm; |
---|
| 19 | |
---|
[1511] | 20 | INTERCOMM_RANK_MAP *intercomm_rank_map; |
---|
[1512] | 21 | RANK_MAP *inter_rank_map; |
---|
[1502] | 22 | RANK_MAP *local_rank_map; |
---|
| 23 | RANK_MAP *remote_rank_map; |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | SIZE_RANK_INFO size_rank_info[3]; |
---|
| 27 | |
---|
| 28 | |
---|
[1512] | 29 | //ep_comm *local_comm; |
---|
[1502] | 30 | int intercomm_tag; |
---|
| 31 | |
---|
| 32 | ep_intercomm(); |
---|
| 33 | //~ep_intercomm(){delete mpi_inter_comm;} |
---|
| 34 | bool operator == (ep_intercomm right); |
---|
| 35 | bool operator != (ep_intercomm right); |
---|
| 36 | |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | #endif // EP_INTERCOMM_HPP_INCLUDED |
---|
| 45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.