Changeset 1527 for XIOS/dev/branch_openmp/extern/ep_dev/ep_allgather.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_allgather.cpp
r1511 r1527 43 43 { 44 44 45 if(!comm->is_ep && comm->mpi_comm) 46 { 47 return ::MPI_Allgather(const_cast<void*>(sendbuf), sendcount, to_mpi_type(sendtype), recvbuf, recvcount, to_mpi_type(recvtype), to_mpi_comm(comm->mpi_comm)); 48 } 45 if(!comm->is_ep) return ::MPI_Allgather(const_cast<void*>(sendbuf), sendcount, to_mpi_type(sendtype), recvbuf, recvcount, to_mpi_type(recvtype), to_mpi_comm(comm->mpi_comm)); 46 if(comm->is_intercomm) return MPI_Allgather_intercomm(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm); 47 49 48 50 49 assert(sendcount == recvcount); … … 119 118 MPI_Bcast_local(recvbuf, count*ep_size, datatype, 0, comm); 120 119 121 MPI_Barrier(comm);122 123 124 120 if(is_master) 125 121 { … … 131 127 } 132 128 129 int MPI_Allgather_intercomm(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm) 130 { 131 printf("MPI_Allgather_intercomm not yet implemented\n"); 132 MPI_Abort(comm, 0); 133 } 133 134 134 135
Note: See TracChangeset
for help on using the changeset viewer.