Skip to content

Commit ba50056

Browse files
committed
MPI4: deprecate MPI_Info_get
and MPI_Info_get_valuelen related to #9192 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent e1b66cf commit ba50056

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

ompi/include/mpi.h.in

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,8 +1742,6 @@ OMPI_DECLSPEC int MPI_Info_delete(MPI_Info info, const char *key);
17421742
OMPI_DECLSPEC int MPI_Info_dup(MPI_Info info, MPI_Info *newinfo);
17431743
OMPI_DECLSPEC MPI_Info MPI_Info_f2c(MPI_Fint info);
17441744
OMPI_DECLSPEC int MPI_Info_free(MPI_Info *info);
1745-
OMPI_DECLSPEC int MPI_Info_get(MPI_Info info, const char *key, int valuelen,
1746-
char *value, int *flag);
17471745
OMPI_DECLSPEC int MPI_Info_get_nkeys(MPI_Info info, int *nkeys);
17481746
OMPI_DECLSPEC int MPI_Info_get_nthkey(MPI_Info info, int n, char *key);
17491747
OMPI_DECLSPEC int MPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen,
@@ -2506,8 +2504,6 @@ OMPI_DECLSPEC int PMPI_Info_delete(MPI_Info info, const char *key);
25062504
OMPI_DECLSPEC int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo);
25072505
OMPI_DECLSPEC MPI_Info PMPI_Info_f2c(MPI_Fint info);
25082506
OMPI_DECLSPEC int PMPI_Info_free(MPI_Info *info);
2509-
OMPI_DECLSPEC int PMPI_Info_get(MPI_Info info, const char *key, int valuelen,
2510-
char *value, int *flag);
25112507
OMPI_DECLSPEC int PMPI_Info_get_nkeys(MPI_Info info, int *nkeys);
25122508
OMPI_DECLSPEC int PMPI_Info_get_nthkey(MPI_Info info, int n, char *key);
25132509
OMPI_DECLSPEC int PMPI_Info_get_string(MPI_Info info, const char *key, int *buflen,
@@ -3014,6 +3010,18 @@ OMPI_DECLSPEC int MPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val)
30143010
__mpi_interface_deprecated__("MPI_Attr_put was deprecated in MPI-2.0; use MPI_Comm_set_attr instead");
30153011
OMPI_DECLSPEC int PMPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val)
30163012
__mpi_interface_deprecated__("PMPI_Attr_put was deprecated in MPI-2.0; use PMPI_Comm_set_attr instead");
3013+
OMPI_DECLSPEC int MPI_Info_get(MPI_Info info, const char *key, int valuelen,
3014+
char *value, int *flag)
3015+
__mpi_interface_deprecated__("MPI_Info_get was deprecated in MPI-4.0; use MPI_Info_get_string instead");
3016+
OMPI_DECLSPEC int PMPI_Info_get(MPI_Info info, const char *key, int valuelen,
3017+
char *value, int *flag)
3018+
__mpi_interface_deprecated__("PMPI_Info_get was deprecated in MPI-4.0; use PMPI_Info_get_string instead");
3019+
OMPI_DECLSPEC int MPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen,
3020+
int *flag)
3021+
__mpi_interface_deprecated__("MPI_Info_get_valuelen was deprecated in MPI-4.0; use MPI_Info_get_string instead");
3022+
OMPI_DECLSPEC int PMPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen,
3023+
int *flag)
3024+
__mpi_interface_deprecated__("PMPI_Info_get_valuelen was deprecated in MPI-4.0; use PMPI_Info_get_string instead");
30173025

30183026
/*
30193027
* Even though MPI_Copy_function and MPI_Delete_function are

0 commit comments

Comments
 (0)