#include "ep_lib.hpp" #include //#include "ep_declaration.hpp" namespace ep_lib { int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm) { ::MPI_Aint typesize, llb; ::MPI_Type_get_extent(static_cast< ::MPI_Datatype>(sendtype), &llb, &typesize); for(int i=0; isize_rank_info[0].second; i++) { MPI_Gather((char*)sendbuf+i*sendcount*typesize, sendcount, sendtype, recvbuf, recvcount, recvtype, i, comm); } return 0; } }