This source file includes following definitions.
- ompi_ineighbor_alltoall_f
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 
  24 
  25 #include "ompi_config.h"
  26 
  27 #include "ompi/mpi/fortran/mpif-h/bindings.h"
  28 #include "ompi/mpi/fortran/base/constants.h"
  29 
  30 #if OMPI_BUILD_MPI_PROFILING
  31 #if OPAL_HAVE_WEAK_SYMBOLS
  32 #pragma weak PMPI_INEIGHBOR_ALLTOALL = ompi_ineighbor_alltoall_f
  33 #pragma weak pmpi_ineighbor_alltoall = ompi_ineighbor_alltoall_f
  34 #pragma weak pmpi_ineighbor_alltoall_ = ompi_ineighbor_alltoall_f
  35 #pragma weak pmpi_ineighbor_alltoall__ = ompi_ineighbor_alltoall_f
  36 
  37 #pragma weak PMPI_Ineighbor_alltoall_f = ompi_ineighbor_alltoall_f
  38 #pragma weak PMPI_Ineighbor_alltoall_f08 = ompi_ineighbor_alltoall_f
  39 #else
  40 OMPI_GENERATE_F77_BINDINGS (PMPI_INEIGHBOR_ALLTOALL,
  41                             pmpi_ineighbor_alltoall,
  42                             pmpi_ineighbor_alltoall_,
  43                             pmpi_ineighbor_alltoall__,
  44                             pompi_ineighbor_alltoall_f,
  45                             (char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype, char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype, MPI_Fint *comm, MPI_Fint *request, MPI_Fint *ierr),
  46                             (sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm, request, ierr) )
  47 #endif
  48 #endif
  49 
  50 #if OPAL_HAVE_WEAK_SYMBOLS
  51 #pragma weak MPI_INEIGHBOR_ALLTOALL = ompi_ineighbor_alltoall_f
  52 #pragma weak mpi_ineighbor_alltoall = ompi_ineighbor_alltoall_f
  53 #pragma weak mpi_ineighbor_alltoall_ = ompi_ineighbor_alltoall_f
  54 #pragma weak mpi_ineighbor_alltoall__ = ompi_ineighbor_alltoall_f
  55 
  56 #pragma weak MPI_Ineighbor_alltoall_f = ompi_ineighbor_alltoall_f
  57 #pragma weak MPI_Ineighbor_alltoall_f08 = ompi_ineighbor_alltoall_f
  58 #else
  59 #if ! OMPI_BUILD_MPI_PROFILING
  60 OMPI_GENERATE_F77_BINDINGS (MPI_INEIGHBOR_ALLTOALL,
  61                             mpi_ineighbor_alltoall,
  62                             mpi_ineighbor_alltoall_,
  63                             mpi_ineighbor_alltoall__,
  64                             ompi_ineighbor_alltoall_f,
  65                             (char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype, char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype, MPI_Fint *comm, MPI_Fint *request, MPI_Fint *ierr),
  66                             (sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm, request, ierr) )
  67 #else
  68 #define ompi_ineighbor_alltoall_f pompi_ineighbor_alltoall_f
  69 #endif
  70 #endif
  71 
  72 
  73 void ompi_ineighbor_alltoall_f(char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype,
  74                                char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype,
  75                                MPI_Fint *comm, MPI_Fint *request, MPI_Fint *ierr)
  76 {
  77     int c_ierr;
  78     MPI_Comm c_comm;
  79     MPI_Request c_req;
  80     MPI_Datatype c_sendtype, c_recvtype;
  81 
  82     c_comm = PMPI_Comm_f2c(*comm);
  83     c_sendtype = PMPI_Type_f2c(*sendtype);
  84     c_recvtype = PMPI_Type_f2c(*recvtype);
  85 
  86     sendbuf = (char *) OMPI_F2C_IN_PLACE(sendbuf);
  87     sendbuf = (char *) OMPI_F2C_BOTTOM(sendbuf);
  88     recvbuf = (char *) OMPI_F2C_BOTTOM(recvbuf);
  89 
  90     c_ierr = PMPI_Ineighbor_alltoall(sendbuf,
  91                                     OMPI_FINT_2_INT(*sendcount),
  92                                     c_sendtype,
  93                                     recvbuf,
  94                                     OMPI_FINT_2_INT(*recvcount),
  95                                     c_recvtype, c_comm, &c_req);
  96     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
  97 
  98     if (MPI_SUCCESS == c_ierr) *request = PMPI_Request_c2f(c_req);
  99 }