This source file includes following definitions.
- ompix_neighbor_allgather_init_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 #include "ompi/mpiext/pcollreq/mpif-h/mpiext_pcollreq_prototypes.h"
30
31 #if OMPI_BUILD_MPI_PROFILING
32 #if OPAL_HAVE_WEAK_SYMBOLS
33 #pragma weak PMPIX_NEIGHBOR_ALLGATHER_INIT = ompix_neighbor_allgather_init_f
34 #pragma weak pmpix_neighbor_allgather_init = ompix_neighbor_allgather_init_f
35 #pragma weak pmpix_neighbor_allgather_init_ = ompix_neighbor_allgather_init_f
36 #pragma weak pmpix_neighbor_allgather_init__ = ompix_neighbor_allgather_init_f
37
38 #pragma weak PMPIX_Neighbor_allgather_init_f = ompix_neighbor_allgather_init_f
39 #pragma weak PMPIX_Neighbor_allgather_init_f08 = ompix_neighbor_allgather_init_f
40 #else
41 OMPI_GENERATE_F77_BINDINGS (PMPIX_NEIGHBOR_ALLGATHER_INIT,
42 pmpix_neighbor_allgather_init,
43 pmpix_neighbor_allgather_init_,
44 pmpix_neighbor_allgather_init__,
45 pompix_neighbor_allgather_init_f,
46 (char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype, char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype, MPI_Fint *comm, MPI_Fint *info, MPI_Fint *request, MPI_Fint *ierr),
47 (sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm, info, request, ierr) )
48 #endif
49 #endif
50
51 #if OPAL_HAVE_WEAK_SYMBOLS
52 #pragma weak MPIX_NEIGHBOR_ALLGATHER_INIT = ompix_neighbor_allgather_init_f
53 #pragma weak mpix_neighbor_allgather_init = ompix_neighbor_allgather_init_f
54 #pragma weak mpix_neighbor_allgather_init_ = ompix_neighbor_allgather_init_f
55 #pragma weak mpix_neighbor_allgather_init__ = ompix_neighbor_allgather_init_f
56
57 #pragma weak MPIX_Neighbor_allgather_init_f = ompix_neighbor_allgather_init_f
58 #pragma weak MPIX_Neighbor_allgather_init_f08 = ompix_neighbor_allgather_init_f
59 #else
60 #if ! OMPI_BUILD_MPI_PROFILING
61 OMPI_GENERATE_F77_BINDINGS (MPIX_NEIGHBOR_ALLGATHER_INIT,
62 mpix_neighbor_allgather_init,
63 mpix_neighbor_allgather_init_,
64 mpix_neighbor_allgather_init__,
65 ompix_neighbor_allgather_init_f,
66 (char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype, char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype, MPI_Fint *comm, MPI_Fint *info, MPI_Fint *request, MPI_Fint *ierr),
67 (sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm, info, request, ierr) )
68 #else
69 #define ompix_neighbor_allgather_init_f pompix_neighbor_allgather_init_f
70 #endif
71 #endif
72
73
74 void ompix_neighbor_allgather_init_f(char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendtype,
75 char *recvbuf, MPI_Fint *recvcount, MPI_Fint *recvtype,
76 MPI_Fint *comm, MPI_Fint *info, MPI_Fint *request, MPI_Fint *ierr)
77 {
78 int ierr_c;
79 MPI_Comm c_comm;
80 MPI_Info c_info;
81 MPI_Request c_req;
82 MPI_Datatype c_sendtype, c_recvtype;
83
84 c_comm = PMPI_Comm_f2c(*comm);
85 c_sendtype = PMPI_Type_f2c(*sendtype);
86 c_recvtype = PMPI_Type_f2c(*recvtype);
87 c_info = PMPI_Info_f2c(*info);
88
89 sendbuf = (char *) OMPI_F2C_IN_PLACE(sendbuf);
90 sendbuf = (char *) OMPI_F2C_BOTTOM(sendbuf);
91 recvbuf = (char *) OMPI_F2C_BOTTOM(recvbuf);
92
93 ierr_c = PMPIX_Neighbor_allgather_init(sendbuf,
94 OMPI_FINT_2_INT(*sendcount),
95 c_sendtype,
96 recvbuf,
97 OMPI_FINT_2_INT(*recvcount),
98 c_recvtype, c_comm, c_info, &c_req);
99
100 if (NULL != ierr) *ierr = OMPI_INT_2_FINT(ierr_c);
101
102 if (MPI_SUCCESS == ierr_c) *request = PMPI_Request_c2f(c_req);
103 }