Skip to content

Commit 3dc20e2

Browse files
authored
Merge pull request #8701 from ggouaillardet/topic/mpi_f08_ignore_status
use-mpi-f08: add MPI_F08_STATUS[ES]_IGNORE C constants
2 parents 070640e + 0606b99 commit 3dc20e2

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-2020 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.
@@ -217,21 +217,31 @@ struct ompi_status_public_t *ompi_mpi_statuses_ignore_addr =
217217
# if OMPI_FORTRAN_CAPS
218218
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUS_IGNORE;
219219
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUSES_IGNORE;
220+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUS_IGNORE;
221+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &MPI_FORTRAN_STATUSES_IGNORE;
220222
# elif OMPI_FORTRAN_PLAIN
221223
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore;
222224
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore;
225+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore;
226+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore;
223227
# elif OMPI_FORTRAN_SINGLE_UNDERSCORE
224228
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore_;
225229
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore_;
230+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore_;
231+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore_;
226232
# elif OMPI_FORTRAN_DOUBLE_UNDERSCORE
227233
MPI_Fint *MPI_F_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore__;
228234
MPI_Fint *MPI_F_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore__;
235+
MPI_Fint *MPI_F08_STATUS_IGNORE = (MPI_Fint*) &mpi_fortran_status_ignore__;
236+
MPI_Fint *MPI_F08_STATUSES_IGNORE = (MPI_Fint*) &mpi_fortran_statuses_ignore__;
229237
# else
230238
# error Unrecognized Fortran name mangling scheme
231239
# endif
232240
#else
233241
MPI_Fint *MPI_F_STATUS_IGNORE = NULL;
234242
MPI_Fint *MPI_F_STATUSES_IGNORE = NULL;
243+
MPI_Fint *MPI_F08_STATUS_IGNORE = NULL;
244+
MPI_Fint *MPI_F08_STATUSES_IGNORE = NULL;
235245
#endif /* OMPI_BUILD_FORTRAN_BINDINGS */
236246

237247

0 commit comments

Comments
 (0)