Changeset 1295 for XIOS/dev/branch_openmp/extern/src_ep_dev/ep_probe.cpp
- Timestamp:
- 10/06/17 13:56:33 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/src_ep_dev/ep_probe.cpp
r1220 r1295 2 2 #include <mpi.h> 3 3 #include "ep_declaration.hpp" 4 #include "ep_mpi.hpp" 4 5 5 6 namespace ep_lib 6 7 { 7 8 9 8 10 9 int MPI_Iprobe(int src, int tag, MPI_Comm comm, int *flag, MPI_Status *status) … … 14 13 if(!comm.is_ep) 15 14 { 16 ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm >(comm.mpi_comm);17 15 ::MPI_Status *mpi_status = static_cast< ::MPI_Status* >(status->mpi_status); 18 ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, mpi_status);16 ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm.mpi_comm), flag, mpi_status); 19 17 20 18 status->mpi_status = mpi_status; … … 67 65 Debug("calling MPI_Improbe MPI\n"); 68 66 69 ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm>(comm.mpi_comm);70 67 ::MPI_Status mpi_status; 71 68 ::MPI_Message mpi_message; … … 74 71 #pragma omp critical (_mpi_call) 75 72 { 76 ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, &mpi_status);73 ::MPI_Iprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm.mpi_comm), flag, &mpi_status); 77 74 if(*flag) 78 75 { 79 ::MPI_Mprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, &mpi_message, &mpi_status);76 ::MPI_Mprobe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm.mpi_comm), &mpi_message, &mpi_status); 80 77 } 81 78 } 82 79 #elif _intelmpi 83 ::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, mpi_comm, flag, &mpi_message, &mpi_status);80 ::MPI_Improbe(src<0? MPI_ANY_SOURCE : src, tag<0? MPI_ANY_TAG: tag, to_mpi_comm(comm.mpi_comm), flag, &mpi_message, &mpi_status); 84 81 #endif 85 82
Note: See TracChangeset
for help on using the changeset viewer.