mpi-allgather-example.c 261 B

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