10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
- * Copyright (c) 2015-2018 Research Organization for Information Science
14
- * and Technology (RIST). All rights reserved.
13
+ * Copyright (c) 2015-2021 Research Organization for Information Science
14
+ * and Technology (RIST). All rights reserved.
15
15
* $COPYRIGHT$
16
16
*
17
17
* Additional copyrights may follow
23
23
24
24
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
25
#include "ompi/mpi/fortran/base/constants.h"
26
- #include "ompi/mpiext/pcollreq/mpif-h/mpiext_pcollreq_prototypes.h"
27
26
28
27
#if OMPI_BUILD_MPI_PROFILING
29
28
#if OPAL_HAVE_WEAK_SYMBOLS
30
- #pragma weak PMPIX_ALLGATHERV_INIT = ompix_allgatherv_init_f
31
- #pragma weak pmpix_allgatherv_init = ompix_allgatherv_init_f
32
- #pragma weak pmpix_allgatherv_init_ = ompix_allgatherv_init_f
33
- #pragma weak pmpix_allgatherv_init__ = ompix_allgatherv_init_f
29
+ #pragma weak PMPI_ALLGATHERV_INIT = ompi_allgatherv_init_f
30
+ #pragma weak pmpi_allgatherv_init = ompi_allgatherv_init_f
31
+ #pragma weak pmpi_allgatherv_init_ = ompi_allgatherv_init_f
32
+ #pragma weak pmpi_allgatherv_init__ = ompi_allgatherv_init_f
34
33
35
- #pragma weak PMPIX_Allgatherv_init_f = ompix_allgatherv_init_f
36
- #pragma weak PMPIX_Allgatherv_init_f08 = ompix_allgatherv_init_f
34
+ #pragma weak PMPI_Allgatherv_init_f = ompi_allgatherv_init_f
35
+ #pragma weak PMPI_Allgatherv_init_f08 = ompi_allgatherv_init_f
37
36
#else
38
- OMPI_GENERATE_F77_BINDINGS (PMPIX_ALLGATHERV_INIT ,
39
- pmpix_allgatherv_init ,
40
- pmpix_allgatherv_init_ ,
41
- pmpix_allgatherv_init__ ,
42
- pompix_allgatherv_init_f ,
37
+ OMPI_GENERATE_F77_BINDINGS (PMPI_ALLGATHERV_INIT ,
38
+ pmpi_allgatherv_init ,
39
+ pmpi_allgatherv_init_ ,
40
+ pmpi_allgatherv_init__ ,
41
+ pompi_allgatherv_init_f ,
43
42
(char * sendbuf , MPI_Fint * sendcount , MPI_Fint * sendtype , char * recvbuf , MPI_Fint * recvcounts , MPI_Fint * displs , MPI_Fint * recvtype , MPI_Fint * comm , MPI_Fint * info , MPI_Fint * request , MPI_Fint * ierr ),
44
43
(sendbuf , sendcount , sendtype , recvbuf , recvcounts , displs , recvtype , comm , info , request , ierr ) )
45
44
#endif
46
45
#endif
47
46
48
47
#if OPAL_HAVE_WEAK_SYMBOLS
49
- #pragma weak MPIX_ALLGATHERV_INIT = ompix_allgatherv_init_f
50
- #pragma weak mpix_allgatherv_init = ompix_allgatherv_init_f
51
- #pragma weak mpix_allgatherv_init_ = ompix_allgatherv_init_f
52
- #pragma weak mpix_allgatherv_init__ = ompix_allgatherv_init_f
48
+ #pragma weak MPI_ALLGATHERV_INIT = ompi_allgatherv_init_f
49
+ #pragma weak mpi_allgatherv_init = ompi_allgatherv_init_f
50
+ #pragma weak mpi_allgatherv_init_ = ompi_allgatherv_init_f
51
+ #pragma weak mpi_allgatherv_init__ = ompi_allgatherv_init_f
53
52
54
- #pragma weak MPIX_Allgatherv_init_f = ompix_allgatherv_init_f
55
- #pragma weak MPIX_Allgatherv_init_f08 = ompix_allgatherv_init_f
53
+ #pragma weak MPI_Allgatherv_init_f = ompi_allgatherv_init_f
54
+ #pragma weak MPI_Allgatherv_init_f08 = ompi_allgatherv_init_f
56
55
#else
57
56
#if ! OMPI_BUILD_MPI_PROFILING
58
- OMPI_GENERATE_F77_BINDINGS (MPIX_ALLGATHERV_INIT ,
59
- mpix_allgatherv_init ,
60
- mpix_allgatherv_init_ ,
61
- mpix_allgatherv_init__ ,
62
- ompix_allgatherv_init_f ,
57
+ OMPI_GENERATE_F77_BINDINGS (MPI_ALLGATHERV_INIT ,
58
+ mpi_allgatherv_init ,
59
+ mpi_allgatherv_init_ ,
60
+ mpi_allgatherv_init__ ,
61
+ ompi_allgatherv_init_f ,
63
62
(char * sendbuf , MPI_Fint * sendcount , MPI_Fint * sendtype , char * recvbuf , MPI_Fint * recvcounts , MPI_Fint * displs , MPI_Fint * recvtype , MPI_Fint * comm , MPI_Fint * info , MPI_Fint * request , MPI_Fint * ierr ),
64
63
(sendbuf , sendcount , sendtype , recvbuf , recvcounts , displs , recvtype , comm , info , request , ierr ) )
65
64
#else
66
- #define ompix_allgatherv_init_f pompix_allgatherv_init_f
65
+ #define ompi_allgatherv_init_f pompi_allgatherv_init_f
67
66
#endif
68
67
#endif
69
68
70
69
71
- void ompix_allgatherv_init_f (char * sendbuf , MPI_Fint * sendcount , MPI_Fint * sendtype ,
72
- char * recvbuf , MPI_Fint * recvcounts , MPI_Fint * displs ,
73
- MPI_Fint * recvtype , MPI_Fint * comm ,
74
- MPI_Fint * info , MPI_Fint * request , MPI_Fint * ierr )
70
+ void ompi_allgatherv_init_f (char * sendbuf , MPI_Fint * sendcount , MPI_Fint * sendtype ,
71
+ char * recvbuf , MPI_Fint * recvcounts , MPI_Fint * displs ,
72
+ MPI_Fint * recvtype , MPI_Fint * comm ,
73
+ MPI_Fint * info , MPI_Fint * request , MPI_Fint * ierr )
75
74
{
76
75
MPI_Comm c_comm ;
77
76
MPI_Datatype c_sendtype , c_recvtype ;
@@ -94,13 +93,13 @@ void ompix_allgatherv_init_f(char *sendbuf, MPI_Fint *sendcount, MPI_Fint *sendt
94
93
sendbuf = (char * ) OMPI_F2C_BOTTOM (sendbuf );
95
94
recvbuf = (char * ) OMPI_F2C_BOTTOM (recvbuf );
96
95
97
- ierr_c = PMPIX_Allgatherv_init (sendbuf ,
98
- OMPI_FINT_2_INT (* sendcount ),
99
- c_sendtype ,
100
- recvbuf ,
101
- OMPI_ARRAY_NAME_CONVERT (recvcounts ),
102
- OMPI_ARRAY_NAME_CONVERT (displs ),
103
- c_recvtype , c_comm , c_info , & c_request );
96
+ ierr_c = PMPI_Allgatherv_init (sendbuf ,
97
+ OMPI_FINT_2_INT (* sendcount ),
98
+ c_sendtype ,
99
+ recvbuf ,
100
+ OMPI_ARRAY_NAME_CONVERT (recvcounts ),
101
+ OMPI_ARRAY_NAME_CONVERT (displs ),
102
+ c_recvtype , c_comm , c_info , & c_request );
104
103
105
104
if (NULL != ierr ) * ierr = OMPI_INT_2_FINT (ierr_c );
106
105
if (MPI_SUCCESS == ierr_c ) * request = PMPI_Request_c2f (c_request );
0 commit comments