File tree Expand file tree Collapse file tree 24 files changed +106
-10
lines changed Expand file tree Collapse file tree 24 files changed +106
-10
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,8 @@ libmpi_c_mpi_la_SOURCES = \
437
437
win_wait.c
438
438
439
439
440
- if OMPI_ENABLE_MPI1_COMPAT
440
+ # include all of the removed MPI functions in library
441
+ # for v4.0.x regardless of state of OMPI_ENABLE_MPI1_COMPAT
441
442
libmpi_c_mpi_la_SOURCES += \
442
443
address.c \
443
444
errhandler_create.c \
@@ -449,7 +450,6 @@ libmpi_c_mpi_la_SOURCES += \
449
450
type_lb.c \
450
451
type_struct.c \
451
452
type_ub.c
452
- endif
453
453
454
454
# Conditionally install the header files
455
455
Original file line number Diff line number Diff line change 21
21
#include "ompi_config.h"
22
22
#include <stdio.h>
23
23
24
+ /* This implementation has been removed from the MPI 3.1 standard.
25
+ * Open MPI v4.0.x is keeping the implementation in the library, but
26
+ * removing the prototypes from the headers, unless the user configures
27
+ * with --enable-mpi1-compatibility.
28
+ *
29
+ * To prevent having to port these implementations of removed functions
30
+ * to the newer MPI calls, we are defining ENABLE_MPI1_COMPAT to 1
31
+ * before including the c bindings.
32
+ */
33
+ #define ENABLE_MPI1_COMPAT 1
34
+
24
35
#include "ompi/mpi/c/bindings.h"
25
36
#include "ompi/runtime/params.h"
26
37
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/communicator/communicator.h"
25
29
#include "ompi/errhandler/errhandler.h"
31
35
#define MPI_Errhandler_create PMPI_Errhandler_create
32
36
#endif
33
37
34
- int MPI_Errhandler_create (MPI_Handler_function * function ,
38
+ int MPI_Errhandler_create (MPI_Comm_errhandler_function * function ,
35
39
MPI_Errhandler * errhandler )
36
40
{
37
41
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change @@ -416,7 +416,8 @@ nodist_libmpi_c_pmpi_la_SOURCES = \
416
416
pwin_unlock_all.c \
417
417
pwin_wait.c
418
418
419
- if OMPI_ENABLE_MPI1_COMPAT
419
+ # include all of the removed MPI functions in library
420
+ # for v4.0.x regardless of state of OMPI_ENABLE_MPI1_COMPAT
420
421
nodist_libmpi_c_pmpi_la_SOURCES += \
421
422
paddress.c \
422
423
perrhandler_create.c \
@@ -428,7 +429,6 @@ nodist_libmpi_c_pmpi_la_SOURCES += \
428
429
ptype_lb.c \
429
430
ptype_struct.c \
430
431
ptype_ub.c
431
- endif
432
432
433
433
#
434
434
# Sym link in the sources from the real MPI directory
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
25
29
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 20
20
21
21
#include "ompi_config.h"
22
22
23
+ /* defining ENABLE_MPI1_COMPAT to 1 for removed implementations here.
24
+ * see comments in address.c for more information. */
25
+ #define ENABLE_MPI1_COMPAT 1
26
+
23
27
#include "ompi/mpi/c/bindings.h"
24
28
#include "ompi/runtime/params.h"
25
29
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change @@ -481,8 +481,8 @@ lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \
481
481
win_flush_local_f.c \
482
482
win_flush_local_all_f.c
483
483
484
-
485
- if OMPI_ENABLE_MPI1_COMPAT
484
+ # include all of the removed MPI functions in library
485
+ # for v4.0.x regardless of state of OMPI_ENABLE_MPI1_COMPAT
486
486
lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \
487
487
address_f.c \
488
488
errhandler_create_f.c \
@@ -495,7 +495,6 @@ lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \
495
495
type_struct_f.c \
496
496
type_ub_f.c
497
497
endif
498
- endif
499
498
500
499
#
501
500
# Conditionally install the header files
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2008-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
#include "ompi/errhandler/errhandler.h"
26
31
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2008-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
#include "ompi/errhandler/errhandler.h"
26
31
Original file line number Diff line number Diff line change @@ -397,7 +397,8 @@ linked_files = \
397
397
pwin_flush_local_f.c \
398
398
pwin_flush_local_all_f.c
399
399
400
- if OMPI_ENABLE_MPI1_COMPAT
400
+ # include all of the removed MPI functions in library
401
+ # for v4.0.x regardless of state of OMPI_ENABLE_MPI1_COMPAT
401
402
linked_files += \
402
403
paddress_f.c \
403
404
perrhandler_create_f.c \
@@ -409,7 +410,6 @@ linked_files += \
409
410
ptype_lb_f.c \
410
411
ptype_struct_f.c \
411
412
ptype_ub_f.c
412
- endif
413
413
414
414
#
415
415
# Sym link in the sources from the real MPI directory
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
#include "ompi/errhandler/errhandler.h"
26
31
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
#include "ompi/errhandler/errhandler.h"
26
31
#include "ompi/communicator/communicator.h"
Original file line number Diff line number Diff line change 12
12
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
+ * Copyright (c) 2018 IBM Corporation. All rights reserved.
15
16
* $COPYRIGHT$
16
17
*
17
18
* Additional copyrights may follow
21
22
22
23
#include "ompi_config.h"
23
24
25
+ /* defining #define OMPI_OMIT_MPI1_COMPAT_DECLS to 0 for removed
26
+ * implementations here. see comments in address.c for more information. */
27
+ #define OMPI_OMIT_MPI1_COMPAT_DECLS 0
28
+
24
29
#include "ompi/mpi/fortran/mpif-h/bindings.h"
25
30
26
31
#if OMPI_BUILD_MPI_PROFILING
You can’t perform that action at this time.
0 commit comments