Last change
on this file since 1711 was
1646,
checked in by yushan, 5 years ago
|
branch merged with trunk @1645. arch file (ep&mpi) added for ADA
|
File size:
538 bytes
|
Rev | Line | |
---|
[1646] | 1 | #ifdef _usingEP |
---|
[1603] | 2 | #include "ep_lib.hpp" |
---|
| 3 | #include <mpi.h> |
---|
| 4 | #include "ep_declaration.hpp" |
---|
| 5 | #include "ep_mpi.hpp" |
---|
| 6 | |
---|
| 7 | namespace ep_lib |
---|
| 8 | { |
---|
| 9 | |
---|
| 10 | int MPI_Comm_rank(MPI_Comm comm, int* rank) |
---|
| 11 | { |
---|
| 12 | if(comm->is_ep) |
---|
| 13 | { |
---|
| 14 | Debug("MPI_Comm_rank with EP"); |
---|
| 15 | return *rank = comm->ep_comm_ptr->size_rank_info[0].first; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | return MPI_Comm_rank_mpi(comm, rank); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | int MPI_Comm_rank_mpi(MPI_Comm comm, int* rank) |
---|
| 23 | { |
---|
| 24 | Debug("MPI_Comm_rank with MPI"); |
---|
| 25 | return ::MPI_Comm_rank(to_mpi_comm(comm->mpi_comm), rank); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | |
---|
[1646] | 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.