Changeset 1527 for XIOS/dev/branch_openmp/extern/ep_dev/ep_barrier.cpp
- Timestamp:
- 06/08/18 15:59:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_barrier.cpp
r1525 r1527 9 9 int MPI_Barrier(MPI_Comm comm) 10 10 { 11 if(comm->is_intercomm) return MPI_Barrier_intercomm(comm);12 11 13 12 if(comm->is_ep) 14 13 { 15 return MPI_Barrier_ intracomm(comm);14 return MPI_Barrier_endpoint(comm); 16 15 } 17 16 … … 21 20 } 22 21 23 int MPI_Barrier_ intracomm(MPI_Comm comm)22 int MPI_Barrier_endpoint(MPI_Comm comm) 24 23 { 25 24 int ep_rank_loc = comm->ep_comm_ptr->size_rank_info[1].first; … … 35 34 36 35 MPI_Barrier_local(comm); 37 38 return 0;39 36 } 40 37 41 int MPI_Barrier2(MPI_Comm comm)42 {43 int ep_rank_loc = comm->ep_comm_ptr->size_rank_info[1].first;44 45 MPI_Barrier_local(comm);46 47 if(ep_rank_loc == 0)48 {49 ::MPI_Comm mpi_comm = to_mpi_comm(comm->mpi_comm);50 51 ::MPI_Barrier(mpi_comm);52 }53 54 MPI_Barrier_local(comm);55 56 return 0;57 }58 59 int MPI_Barrier_intercomm(MPI_Comm comm)60 {61 MPI_Barrier_local(comm);62 63 if(comm->ep_comm_ptr->intercomm->size_rank_info[1].first == 0)64 ::MPI_Barrier(to_mpi_comm(comm->ep_comm_ptr->intercomm->mpi_inter_comm));65 66 MPI_Barrier_local(comm);67 }68 38 69 39 int MPI_Barrier_mpi(MPI_Comm comm)
Note: See TracChangeset
for help on using the changeset viewer.