This source file includes following definitions.
- MPI_Allgather
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 #include "ompi_config.h"
  24 
  25 #include <stdio.h>
  26 
  27 #include "opal_stdint.h"
  28 
  29 #include "ompi/mpi/c/bindings.h"
  30 
  31 int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
  32                   void *recvbuf, int recvcount, MPI_Datatype recvtype,
  33                   MPI_Comm comm)
  34 {
  35     char sendtypename[MPI_MAX_OBJECT_NAME], recvtypename[MPI_MAX_OBJECT_NAME];
  36     char commname[MPI_MAX_OBJECT_NAME];
  37     int len;
  38     int rank;
  39 
  40     PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
  41     PMPI_Type_get_name(sendtype, sendtypename, &len);
  42     PMPI_Type_get_name(recvtype, recvtypename, &len);
  43     PMPI_Comm_get_name(comm, commname, &len);
  44 
  45     fprintf(stderr, "MPI_ALLGATHER[%d]: sendbuf %0" PRIxPTR " sendcount %d sendtype %s\n\trecvbuf %0" PRIxPTR " recvcount %d recvtype %s comm %s\n",
  46            rank, (uintptr_t) sendbuf, sendcount, sendtypename, (uintptr_t) recvbuf, recvcount, recvtypename, commname);
  47     fflush(stderr);
  48 
  49     return PMPI_Allgather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm);
  50 }
  51