Skip to content

Commit 0606b99

Browse files
committed
use-mpi-f08: add MPI_F08_STATUS[ES]_IGNORE C constants
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent ff1ba01 commit 0606b99

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

ompi/include/mpi.h.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* reserved.
1818
* Copyright (c) 2011-2013 INRIA. All rights reserved.
1919
* Copyright (c) 2015 University of Houston. All rights reserved.
20-
* Copyright (c) 2015-2020 Research Organization for Information Science
20+
* Copyright (c) 2015-2021 Research Organization for Information Science
2121
* and Technology (RIST). All rights reserved.
2222
* Copyright (c) 2017-2019 IBM Corporation. All rights reserved.
2323
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
@@ -1086,6 +1086,9 @@ OMPI_DECLSPEC extern struct ompi_predefined_info_t ompi_mpi_info_env;
10861086
OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUS_IGNORE;
10871087
OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;
10881088

1089+
OMPI_DECLSPEC extern MPI_Fint *MPI_F08_STATUS_IGNORE;
1090+
OMPI_DECLSPEC extern MPI_Fint *MPI_F08_STATUSES_IGNORE;
1091+
10891092
/*
10901093
* Removed datatypes. These datatypes are only available if Open MPI
10911094
* was configured with --enable-mpi1-compatibility.

ompi/runtime/ompi_mpi_init.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
1919
* Copyright (c) 2012-2013 Inria. All rights reserved.
2020
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
21-
* Copyright (c) 2014-2016 Research Organization for Information Science
22-
* and Technology (RIST). All rights reserved.
21+
* Copyright (c) 2014-2021 Research Organization for Information Science
22+
* and Technology (RIST). All rights reserved.
2323
* Copyright (c) 2016-2018 Mellanox Technologies Ltd. All rights reserved.
2424
*
2525
* Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
@@ -215,21 +215,31 @@ struct ompi_status_public_t *ompi_mpi_statuses_ignore_addr =
215215
# if OMPI_FORTRAN_CAPS
216216
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUS_IGNORE;
217217
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUSES_IGNORE;
218+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUS_IGNORE;
219+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUSES_IGNORE;
218220
# elif OMPI_FORTRAN_PLAIN
219221
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore;
220222
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore;
223+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore;
224+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore;
221225
# elif OMPI_FORTRAN_SINGLE_UNDERSCORE
222226
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore_;
223227
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore_;
228+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore_;
229+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore_;
224230
# elif OMPI_FORTRAN_DOUBLE_UNDERSCORE
225231
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore__;
226232
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore__;
233+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore__;
234+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore__;
227235
# else
228236
# error Unrecognized Fortran name mangling scheme
229237
# endif
230238
#else
231239
MPI_Fint *MPI_F_STATUS_IGNORE = NULL;
232240
MPI_Fint *MPI_F_STATUSES_IGNORE = NULL;
241+
MPI_Fint *MPI_F08_STATUS_IGNORE = NULL;
242+
MPI_Fint *MPI_F08_STATUSES_IGNORE = NULL;
233243
#endif /* OMPI_BUILD_FORTRAN_BINDINGS */
234244

235245

0 commit comments

Comments
 (0)