|
19 | 19 | * Copyright (c) 2015 University of Houston. All rights reserved. |
20 | 20 | * Copyright (c) 2015-2018 Research Organization for Information Science |
21 | 21 | * and Technology (RIST). All rights reserved. |
22 | | - * Copyright (c) 2017-2018 IBM Corporation. All rights reserved. |
| 22 | + * Copyright (c) 2017-2019 IBM Corporation. All rights reserved. |
23 | 23 | * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. |
24 | 24 | * $COPYRIGHT$ |
25 | 25 | * |
|
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 |
|
|
280 | 277 | # define __mpi_interface_deprecated__(msg) __attribute__((__deprecated__)) |
281 | 278 | # endif |
282 | 279 | # endif |
283 | | -# if OMPI_ENABLE_MPI1_COMPAT |
284 | | -# define __mpi_interface_removed__(msg) __mpi_interface_deprecated__(msg) |
285 | | -# define OMPI_OMIT_MPI1_COMPAT_DECLS 0 |
286 | | -# endif |
287 | 280 | # endif |
288 | 281 | # endif |
289 | 282 | #endif |
|
297 | 290 | # define __mpi_interface_deprecated__(msg) |
298 | 291 | #endif |
299 | 292 |
|
300 | | -#if !defined(__mpi_interface_removed__) |
301 | | -# define __mpi_interface_removed__(msg) |
302 | | -#endif |
303 | | - |
304 | | -#if !defined(OMPI_OMIT_MPI1_COMPAT_DECLS) |
305 | | -# define OMPI_OMIT_MPI1_COMPAT_DECLS !OMPI_ENABLE_MPI1_COMPAT |
306 | | -#endif |
307 | | - |
308 | 293 | /* |
309 | 294 | * To accomodate programs written for MPI implementations that use a |
310 | 295 | * straight ROMIO import |
@@ -1005,23 +990,6 @@ OMPI_DECLSPEC extern struct ompi_predefined_info_t ompi_mpi_info_env; |
1005 | 990 | OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUS_IGNORE; |
1006 | 991 | OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE; |
1007 | 992 |
|
1008 | | -#if !OMPI_OMIT_MPI1_COMPAT_DECLS |
1009 | | -/* |
1010 | | - * Removed datatypes. These datatypes are only available if Open MPI |
1011 | | - * was configured with --enable-mpi1-compatibility. |
1012 | | - * |
1013 | | - * These datatypes were formally removed from the MPI specification |
1014 | | - * and should no longer be used in MPI applications. |
1015 | | - */ |
1016 | | -#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub) |
1017 | | -#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb) |
1018 | | - |
1019 | | -OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_lb |
1020 | | - __mpi_interface_removed__("MPI_LB was removed in MPI-3.0; use MPI_Type_create_resized instead."); |
1021 | | -OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub |
1022 | | - __mpi_interface_removed__("MPI_UB was removed in MPI-3.0; use MPI_Type_create_resized instead."); |
1023 | | -#endif /* !OMPI_OMIT_MPI1_COMPAT_DECLS */ |
1024 | | - |
1025 | 993 | /* |
1026 | 994 | * MPI predefined handles |
1027 | 995 | */ |
@@ -2672,85 +2640,6 @@ OMPI_DECLSPEC int OMPI_C_MPI_NULL_DELETE_FN( MPI_Comm comm, int comm_keyval, |
2672 | 2640 | void* extra_state ) |
2673 | 2641 | __mpi_interface_deprecated__("MPI_NULL_DELETE_FN was deprecated in MPI-2.0; use MPI_COMM_NULL_DELETE_FN instead."); |
2674 | 2642 |
|
2675 | | -#if !OMPI_OMIT_MPI1_COMPAT_DECLS |
2676 | | -/* |
2677 | | - * Removed typedefs. These typedefs are only available if Open MPI |
2678 | | - * was configured with --enable-mpi1-compatibility. |
2679 | | - * |
2680 | | - * These typedefs were formally removed from the MPI specification |
2681 | | - * and should no longer be used in MPI applications. |
2682 | | - * |
2683 | | - * Even though MPI_Handler_function is removed, we do not use the |
2684 | | - * attributes marking it as such, because otherwise the compiler |
2685 | | - * will warn for all the functions that are declared using them |
2686 | | - * (e.g., MPI_Errhandler_create). |
2687 | | - */ |
2688 | | -typedef void (MPI_Handler_function)(MPI_Comm *, int *, ...); |
2689 | | -/* MPI_Handler_function was removed in MPI-3.0; use MPI_Comm_use_errhandler_function instead. */ |
2690 | | - |
2691 | | -/* |
2692 | | - * Removed prototypes. These prototypes are only available if Open |
2693 | | - * MPI was configured with --enable-mpi1-compatibility. |
2694 | | - * |
2695 | | - * These functions were formally removed from the MPI specification |
2696 | | - * and should no longer be used in MPI applications. |
2697 | | - */ |
2698 | | -OMPI_DECLSPEC int MPI_Address(void *location, MPI_Aint *address) |
2699 | | - __mpi_interface_removed__("MPI_Address was removed in MPI-3.0; use MPI_Get_address instead."); |
2700 | | -OMPI_DECLSPEC int PMPI_Address(void *location, MPI_Aint *address) |
2701 | | - __mpi_interface_removed__("PMPI_Address was removed in MPI-3.0; use MPI_Get_address instead."); |
2702 | | -OMPI_DECLSPEC int MPI_Errhandler_create(MPI_Handler_function *function, |
2703 | | - MPI_Errhandler *errhandler) |
2704 | | - __mpi_interface_removed__("MPI_Errhandler_create was removed in MPI-3.0; use MPI_Comm_create_errhandler instead."); |
2705 | | -OMPI_DECLSPEC int PMPI_Errhandler_create(MPI_Handler_function *function, |
2706 | | - MPI_Errhandler *errhandler) |
2707 | | - __mpi_interface_removed__("PMPI_Errhandler_create was removed in MPI-3.0; use PMPI_Comm_create_errhandler instead."); |
2708 | | -OMPI_DECLSPEC int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler) |
2709 | | - __mpi_interface_removed__("MPI_Errhandler_get was removed in MPI-3.0; use MPI_Comm_get_errhandler instead."); |
2710 | | -OMPI_DECLSPEC int PMPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler) |
2711 | | - __mpi_interface_removed__("PMPI_Errhandler_get was removed in MPI-3.0; use PMPI_Comm_get_errhandler instead."); |
2712 | | -OMPI_DECLSPEC int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) |
2713 | | - __mpi_interface_removed__("MPI_Errhandler_set was removed in MPI-3.0; use MPI_Comm_set_errhandler instead."); |
2714 | | -OMPI_DECLSPEC int PMPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) |
2715 | | - __mpi_interface_removed__("PMPI_Errhandler_set was removed in MPI-3.0; use PMPI_Comm_set_errhandler instead."); |
2716 | | -OMPI_DECLSPEC int MPI_Type_extent(MPI_Datatype type, MPI_Aint *extent) |
2717 | | - __mpi_interface_removed__("MPI_Type_extent was removed in MPI-3.0; use MPI_Type_get_extent instead."); |
2718 | | -OMPI_DECLSPEC int PMPI_Type_extent(MPI_Datatype type, MPI_Aint *extent) |
2719 | | - __mpi_interface_removed__("PMPI_Type_extent was removed in MPI-3.0; use PMPI_Type_get_extent instead."); |
2720 | | -OMPI_DECLSPEC int MPI_Type_hindexed(int count, int array_of_blocklengths[], |
2721 | | - MPI_Aint array_of_displacements[], |
2722 | | - MPI_Datatype oldtype, MPI_Datatype *newtype) |
2723 | | - __mpi_interface_removed__("MPI_Type_hindexed was removed in MPI-3.0; use MPI_Type_create_hindexed instead."); |
2724 | | -OMPI_DECLSPEC int PMPI_Type_hindexed(int count, int array_of_blocklengths[], |
2725 | | - MPI_Aint array_of_displacements[], |
2726 | | - MPI_Datatype oldtype, MPI_Datatype *newtype) |
2727 | | - __mpi_interface_removed__("PMPI_Type_hindexed was removed in MPI-3.0; use PMPI_Type_create_hindexed instead."); |
2728 | | -OMPI_DECLSPEC int MPI_Type_hvector(int count, int blocklength, MPI_Aint stride, |
2729 | | - MPI_Datatype oldtype, MPI_Datatype *newtype) |
2730 | | - __mpi_interface_removed__("MPI_Type_hvector was removed in MPI-3.0; use MPI_Type_create_hvector instead."); |
2731 | | -OMPI_DECLSPEC int PMPI_Type_hvector(int count, int blocklength, MPI_Aint stride, |
2732 | | - MPI_Datatype oldtype, MPI_Datatype *newtype) |
2733 | | - __mpi_interface_removed__("PMPI_Type_hvector was removed in MPI-3.0; use PMPI_Type_create_hvector instead."); |
2734 | | -OMPI_DECLSPEC int MPI_Type_lb(MPI_Datatype type, MPI_Aint *lb) |
2735 | | - __mpi_interface_removed__("MPI_Type_lb has been removed in MPI-3.0; use MPI_Type_get_extent instead."); |
2736 | | -OMPI_DECLSPEC int PMPI_Type_lb(MPI_Datatype type, MPI_Aint *lb) |
2737 | | - __mpi_interface_removed__("PMPI_Type_lb has been removed in MPI-3.0; use PMPI_Type_get_extent instead."); |
2738 | | -OMPI_DECLSPEC int MPI_Type_struct(int count, int array_of_blocklengths[], |
2739 | | - MPI_Aint array_of_displacements[], |
2740 | | - MPI_Datatype array_of_types[], |
2741 | | - MPI_Datatype *newtype) |
2742 | | - __mpi_interface_removed__("MPI_Type_struct was removed in MPI-3.0; use MPI_Type_create_struct instead."); |
2743 | | -OMPI_DECLSPEC int PMPI_Type_struct(int count, int array_of_blocklengths[], |
2744 | | - MPI_Aint array_of_displacements[], |
2745 | | - MPI_Datatype array_of_types[], |
2746 | | - MPI_Datatype *newtype) |
2747 | | - __mpi_interface_removed__("PMPI_Type_struct was removed in MPI-3.0; use PMPI_Type_create_struct instead."); |
2748 | | -OMPI_DECLSPEC int MPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub) |
2749 | | - __mpi_interface_removed__("MPI_Type_ub has been removed in MPI-3.0; use MPI_Type_get_extent instead."); |
2750 | | -OMPI_DECLSPEC int PMPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub) |
2751 | | - __mpi_interface_removed__("PMPI_Type_ub has been removed in MPI-3.0; use PMPI_Type_get_extent instead."); |
2752 | | -#endif /* !OMPI_OMIT_MPI1_COMPAT_DECLS */ |
2753 | | - |
2754 | 2643 | #if defined(c_plusplus) || defined(__cplusplus) |
2755 | 2644 | } |
2756 | 2645 | #endif |
|
0 commit comments