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; |
---|
[1525] | 8 | typedef std::map<int, int > INTER_RANK_MAP; |
---|
[1502] | 9 | |
---|
| 10 | namespace ep_lib |
---|
| 11 | { |
---|
[1530] | 12 | /* |
---|
[1502] | 13 | class ep_comm; |
---|
| 14 | |
---|
| 15 | class ep_intercomm |
---|
| 16 | { |
---|
| 17 | public: |
---|
| 18 | |
---|
| 19 | void *mpi_inter_comm; |
---|
| 20 | |
---|
[1515] | 21 | INTERCOMM_RANK_MAP *intercomm_rank_map; // quadruple : ep_rank_in_local_comm, ep_rank_loc_in_newcomm, mpi_rank_in_new_comm, comm_label |
---|
| 22 | // of remote_comm |
---|
| 23 | |
---|
| 24 | EP_RANK_MAP *local_rank_map; // = ep_rank_map of local_comm |
---|
| 25 | |
---|
| 26 | |
---|
[1517] | 27 | RANK_MAP *inter_rank_map; |
---|
[1515] | 28 | RANK_MAP *loc_rank_map; |
---|
[1502] | 29 | RANK_MAP *remote_rank_map; |
---|
| 30 | |
---|
| 31 | |
---|
[1517] | 32 | SIZE_RANK_INFO size_rank_info[3]; // size_rank_info of newcomm |
---|
[1502] | 33 | |
---|
| 34 | |
---|
[1518] | 35 | int intercomm_tag; // newcomm_ep_rank_loc of ep with ep_rank_loc==0 |
---|
| 36 | // used in comm_dup_intercomm |
---|
[1502] | 37 | |
---|
| 38 | }; |
---|
[1530] | 39 | */ |
---|
[1502] | 40 | |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | #endif // EP_INTERCOMM_HPP_INCLUDED |
---|
| 46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.