|
137 | 137 | /* Whether we have FORTRAN REAL*8 or not */
|
138 | 138 | #undef OMPI_HAVE_FORTRAN_REAL8
|
139 | 139 |
|
140 |
| -/* Whether in include MPI-1 compatibility */ |
141 |
| -#undef OMPI_ENABLE_MPI1_COMPAT |
142 |
| - |
143 | 140 | /* Whether we have float _Complex or not */
|
144 | 141 | #undef HAVE_FLOAT__COMPLEX
|
145 | 142 |
|
|
279 | 276 | # else
|
280 | 277 | # define __mpi_interface_deprecated__(msg) __attribute__((__deprecated__))
|
281 | 278 | # endif
|
282 |
| -# endif |
283 |
| - /* For removed API, there is no portable way to cause the |
284 |
| - * C compiler to error with a nice message on the usage of |
285 |
| - * one of these symbols, so instead we use a C11 static_assert |
286 |
| - * If the user is not using a C11 compiler, they will get an |
287 |
| - * undefined reference, but no line number or nice message. |
288 |
| - */ |
289 |
| -# if (OMPI_ENABLE_MPI1_COMPAT && !OMPI_BUILDING) |
290 |
| -# define OMPI_OMIT_MPI1_COMPAT_DECLS 0 |
291 |
| -# if (__STDC_VERSION__ >= 201112L) |
292 |
| -# define MPI_INTERFACE_REMOVED(func, newfunc, ...) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.") |
293 |
| -# else |
294 |
| -# if OPAL_HAVE_ATTRIBUTE_ERROR |
295 |
| -# define MPI_INTERFACE_REMOVED(func, newfunc, ...) func(__VA_ARGS) __attribute__((__error__(#func " was removed in MPI-3.0. Use " #newfunc " instead."))) |
296 |
| -# else |
297 |
| -# define MPI_INTERFACE_REMOVED(func, newfunc, ...) func(__VA_ARGS) |
298 |
| -# endif |
299 |
| -# endif |
300 | 279 | # endif
|
301 | 280 | # endif
|
302 | 281 | # endif
|
|
311 | 290 | # define __mpi_interface_deprecated__(msg)
|
312 | 291 | #endif
|
313 | 292 |
|
314 |
| -#if !defined(__mpi_interface_removed__) |
315 |
| -# define __mpi_interface_removed__(msg) |
316 |
| -#endif |
317 |
| - |
318 |
| -#if !defined(OMPI_OMIT_MPI1_COMPAT_DECLS) |
319 |
| -# define OMPI_OMIT_MPI1_COMPAT_DECLS !OMPI_ENABLE_MPI1_COMPAT |
320 |
| -#endif |
321 |
| - |
322 | 293 | /*
|
323 | 294 | * To accomodate programs written for MPI implementations that use a
|
324 | 295 | * straight ROMIO import
|
@@ -1019,23 +990,6 @@ OMPI_DECLSPEC extern struct ompi_predefined_info_t ompi_mpi_info_env;
|
1019 | 990 | OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUS_IGNORE;
|
1020 | 991 | OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;
|
1021 | 992 |
|
1022 |
| -#if (!OMPI_OMIT_MPI1_COMPAT_DECLS || OMPI_BUILDING) |
1023 |
| -/* |
1024 |
| - * Removed datatypes. These datatypes are only available if Open MPI |
1025 |
| - * was configured with --enable-mpi1-compatibility. |
1026 |
| - * |
1027 |
| - * These datatypes were formally removed from the MPI specification |
1028 |
| - * and should no longer be used in MPI applications. |
1029 |
| - */ |
1030 |
| -#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub) |
1031 |
| -#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb) |
1032 |
| - |
1033 |
| -OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_lb |
1034 |
| - __mpi_interface_removed__("MPI_LB was removed in MPI-3.0; use MPI_Type_create_resized instead."); |
1035 |
| -OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub |
1036 |
| - __mpi_interface_removed__("MPI_UB was removed in MPI-3.0; use MPI_Type_create_resized instead."); |
1037 |
| -#endif /* !OMPI_OMIT_MPI1_COMPAT_DECLS */ |
1038 |
| - |
1039 | 993 | /*
|
1040 | 994 | * MPI predefined handles
|
1041 | 995 | */
|
@@ -2686,86 +2640,6 @@ OMPI_DECLSPEC int OMPI_C_MPI_NULL_DELETE_FN( MPI_Comm comm, int comm_keyval,
|
2686 | 2640 | void* extra_state )
|
2687 | 2641 | __mpi_interface_deprecated__("MPI_NULL_DELETE_FN was deprecated in MPI-2.0; use MPI_COMM_NULL_DELETE_FN instead.");
|
2688 | 2642 |
|
2689 |
| -#if (!OMPI_OMIT_MPI1_COMPAT_DECLS || OMPI_BUILDING) |
2690 |
| -/* |
2691 |
| - * Removed typedefs. These typedefs are only available if Open MPI |
2692 |
| - * was configured with --enable-mpi1-compatibility. |
2693 |
| - * |
2694 |
| - * These typedefs were formally removed from the MPI specification |
2695 |
| - * and should no longer be used in MPI applications. |
2696 |
| - * |
2697 |
| - * Even though MPI_Handler_function is removed, we do not use the |
2698 |
| - * attributes marking it as such, because otherwise the compiler |
2699 |
| - * will warn for all the functions that are declared using them |
2700 |
| - * (e.g., MPI_Errhandler_create). |
2701 |
| - */ |
2702 |
| -typedef void (MPI_Handler_function)(MPI_Comm *, int *, ...); |
2703 |
| -/* MPI_Handler_function was removed in MPI-3.0; use MPI_Comm_use_errhandler_function instead. */ |
2704 |
| - |
2705 |
| -/* |
2706 |
| - * Removed prototypes. These prototypes are only available if Open |
2707 |
| - * MPI was configured with --enable-mpi1-compatibility. |
2708 |
| - * |
2709 |
| - * These functions were formally removed from the MPI specification |
2710 |
| - * and should no longer be used in MPI applications. |
2711 |
| - */ |
2712 |
| -OMPI_DECLSPEC int MPI_Address(void *location, MPI_Aint *address); |
2713 |
| -#define MPI_Address(...) MPI_INTERFACE_REMOVED(MPI_Address, MPI_Get_address) |
2714 |
| -OMPI_DECLSPEC int PMPI_Address(void *location, MPI_Aint *address); |
2715 |
| -#define PMPI_Address(...) MPI_INTERFACE_REMOVED(PMPI_Address, PMPI_Get_address) |
2716 |
| -OMPI_DECLSPEC int MPI_Errhandler_create(MPI_Handler_function *function, |
2717 |
| - MPI_Errhandler *errhandler); |
2718 |
| -#define MPI_Errhandler_create MPI_INTERFACE_REMOVED(MPI_Errhandler_create, MPI_Comm_create_errhandler) |
2719 |
| -OMPI_DECLSPEC int PMPI_Errhandler_create(MPI_Handler_function *function, |
2720 |
| - MPI_Errhandler *errhandler); |
2721 |
| -#define PMPI_Errhandler_create MPI_INTERFACE_REMOVED(PMPI_Errhandler_create, PMPI_Comm_create_errhandler) |
2722 |
| -OMPI_DECLSPEC int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler); |
2723 |
| -#define MPI_Errhandler_get(...) MPI_INTERFACE_REMOVED(MPI_Errhandler_get, MPI_Comm_get_errhandler) |
2724 |
| -OMPI_DECLSPEC int PMPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler); |
2725 |
| -#define PMPI_Errhandler_get(...) MPI_INTERFACE_REMOVED(PMPI_Errhandler_get, PMPI_Comm_get_errhandler) |
2726 |
| -OMPI_DECLSPEC int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler); |
2727 |
| -#define MPI_Errhandler_set(...) MPI_INTERFACE_REMOVED(MPI_Errhandler_set, MPI_Comm_set_errhandler) |
2728 |
| -OMPI_DECLSPEC int PMPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler); |
2729 |
| -#define PMPI_Errhandler_set(...) MPI_INTERFACE_REMOVED(PMPI_Errhandler_set, PMPI_Comm_set_errhandler) |
2730 |
| -OMPI_DECLSPEC int MPI_Type_extent(MPI_Datatype type, MPI_Aint *extent); |
2731 |
| -#define MPI_Type_extent(...) MPI_INTERFACE_REMOVED(MPI_Type_extent, MPI_Type_get_extent) |
2732 |
| -OMPI_DECLSPEC int PMPI_Type_extent(MPI_Datatype type, MPI_Aint *extent); |
2733 |
| -#define PMPI_Type_extent(...) MPI_INTERFACE_REMOVED(PMPI_Type_extent, PMPI_Type_get_extent) |
2734 |
| -OMPI_DECLSPEC int MPI_Type_hindexed(int count, int array_of_blocklengths[], |
2735 |
| - MPI_Aint array_of_displacements[], |
2736 |
| - MPI_Datatype oldtype, MPI_Datatype *newtype); |
2737 |
| -#define MPI_Type_hindexed(...) MPI_INTERFACE_REMOVED(MPI_Type_hindexed, MPI_Type_create_hindexed) |
2738 |
| -OMPI_DECLSPEC int PMPI_Type_hindexed(int count, int array_of_blocklengths[], |
2739 |
| - MPI_Aint array_of_displacements[], |
2740 |
| - MPI_Datatype oldtype, MPI_Datatype *newtype); |
2741 |
| -#define PMPI_Type_hindexed(...) MPI_INTERFACE_REMOVED(PMPI_Type_hindexed, PMPI_Type_create_hindexed) |
2742 |
| -OMPI_DECLSPEC int MPI_Type_hvector(int count, int blocklength, MPI_Aint stride, |
2743 |
| - MPI_Datatype oldtype, MPI_Datatype *newtype); |
2744 |
| -#define MPI_Type_hvector(...) MPI_INTERFACE_REMOVED(MPI_Type_hvector, MPI_Type_create_hvector) |
2745 |
| -OMPI_DECLSPEC int PMPI_Type_hvector(int count, int blocklength, MPI_Aint stride, |
2746 |
| - MPI_Datatype oldtype, MPI_Datatype *newtype); |
2747 |
| -#define PMPI_Type_hvector(...) MPI_INTERFACE_REMOVED(PMPI_Type_hvector, PMPI_Type_create_hvector) |
2748 |
| -OMPI_DECLSPEC int MPI_Type_lb(MPI_Datatype type, MPI_Aint *lb); |
2749 |
| -#define MPI_Type_lb(...) MPI_INTERFACE_REMOVED(MPI_Type_lb, MPI_Type_get_extent) |
2750 |
| -OMPI_DECLSPEC int PMPI_Type_lb(MPI_Datatype type, MPI_Aint *lb); |
2751 |
| -#define PMPI_Type_lb(...) MPI_INTERFACE_REMOVED(PMPI_Type_lb, PMPI_Type_get_extent) |
2752 |
| -OMPI_DECLSPEC int MPI_Type_struct(int count, int array_of_blocklengths[], |
2753 |
| - MPI_Aint array_of_displacements[], |
2754 |
| - MPI_Datatype array_of_types[], |
2755 |
| - MPI_Datatype *newtype); |
2756 |
| -#define MPI_Type_struct MPI_INTERFACE_REMOVED(MPI_Type_struct, MPI_Type_create_struct) |
2757 |
| -OMPI_DECLSPEC int PMPI_Type_struct(int count, int array_of_blocklengths[], |
2758 |
| - MPI_Aint array_of_displacements[], |
2759 |
| - MPI_Datatype array_of_types[], |
2760 |
| - MPI_Datatype *newtype); |
2761 |
| -#define PMPI_Type_struct MPI_INTERFACE_REMOVED(PMPI_Type_struct, PMPI_Type_create_struct) |
2762 |
| -OMPI_DECLSPEC int MPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub); |
2763 |
| -#define MPI_Type_ub(...) MPI_INTERFACE_REMOVED(MPI_Type_ub, MPI_Type_get_extent) |
2764 |
| -OMPI_DECLSPEC int PMPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub); |
2765 |
| -#define PMPI_Type_ub(...) MPI_INTERFACE_REMOVED(PMPI_Type_ub, PMPI_Type_get_extent) |
2766 |
| -#endif /* !OMPI_OMIT_MPI1_COMPAT_DECLS */ |
2767 |
| - |
2768 |
| - |
2769 | 2643 | #if defined(c_plusplus) || defined(__cplusplus)
|
2770 | 2644 | }
|
2771 | 2645 | #endif
|
|
0 commit comments