Rev | Line | |
---|
[1381] | 1 | #include "ep_lib.hpp" |
---|
| 2 | #include <mpi.h> |
---|
| 3 | #include "ep_declaration.hpp" |
---|
| 4 | #include "ep_mpi.hpp" |
---|
| 5 | |
---|
| 6 | namespace ep_lib |
---|
| 7 | { |
---|
| 8 | |
---|
| 9 | int MPI_Comm_rank(MPI_Comm comm, int* rank) |
---|
| 10 | { |
---|
[1500] | 11 | if(comm->is_ep) |
---|
[1381] | 12 | { |
---|
[1515] | 13 | Debug("MPI_Comm_rank with EP"); |
---|
| 14 | return *rank = comm->ep_comm_ptr->size_rank_info[0].first; |
---|
[1381] | 15 | } |
---|
| 16 | |
---|
[1515] | 17 | return MPI_Comm_rank_mpi(comm, rank); |
---|
| 18 | } |
---|
[1381] | 19 | |
---|
| 20 | |
---|
[1515] | 21 | int MPI_Comm_rank_mpi(MPI_Comm comm, int* rank) |
---|
| 22 | { |
---|
| 23 | Debug("MPI_Comm_rank with MPI"); |
---|
| 24 | return ::MPI_Comm_rank(to_mpi_comm(comm->mpi_comm), rank); |
---|
[1381] | 25 | } |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.