mpi-alltoall-example.c 243 B

12345678910
  1. #include "mpi.h"
  2. int sendcount, recvcount;
  3. void *sendbuf, *recvbuf;
  4. MPI_Datatype sendtype, recvtype;
  5. MPI_Comm comm;
  6. ...
  7. MPI_Alltoall(sendbuf, sendcount, sendtype,
  8. recvbuf, recvcount, recvtype, comm);
  9. ...