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