@@ -456,8 +456,6 @@ typedef int (MPI_Grequest_query_function)(void *extra_state, MPI_Status *status)
456
456
typedef int (MPI_Grequest_free_function )(void * extra_state );
457
457
typedef int (MPI_Grequest_cancel_function )(void * extra_state , int complete );
458
458
459
- typedef int (MPI_Copy_function )(MPI_Comm comm , int keyval , void * extra_state , void * attribute_val_in , void * attribute_val_out , int * flag ); /* deprecated: MPI-2.0 */
460
- typedef int (MPI_Delete_function )(MPI_Comm omm , int keyval , void * attribute_val , void * extra_state ); /* deprecated: MPI-2.0 */
461
459
typedef int (MPI_Comm_copy_attr_function )(MPI_Comm comm , int keyval , void * extra_state , void * attribute_val_in , void * attribute_val_out , int * flag );
462
460
typedef int (MPI_Comm_delete_attr_function )(MPI_Comm comm , int keyval , void * attribute_val , void * extra_state );
463
461
typedef int (MPI_Type_copy_attr_function )(MPI_Datatype datatype , int keyval , void * extra_state , void * attribute_val_in , void * attribute_val_out , int * flag );
@@ -479,9 +477,6 @@ typedef MPI_File_errhandler_function MPI_File_errhandler_fn;
479
477
typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn ;
480
478
typedef MPI_Session_errhandler_function MPI_Session_errhandler_fn ;
481
479
482
- #define MPI_NULL_COPY_FN ((MPI_Copy_function*)0x0) /* deprecated: MPI-2.0 */
483
- #define MPI_DUP_FN ((MPI_Copy_function*)0x1) /* deprecated: MPI-2.0 */
484
- #define MPI_NULL_DELETE_FN ((MPI_Delete_function*)0x0) /* deprecated: MPI-2.0 */
485
480
#define MPI_COMM_NULL_COPY_FN ((MPI_Comm_copy_attr_function*)0x0)
486
481
#define MPI_COMM_DUP_FN ((MPI_Comm_copy_attr_function*)0x1)
487
482
#define MPI_COMM_NULL_DELETE_FN ((MPI_Comm_delete_attr_function*)0x0)
@@ -613,9 +608,6 @@ int MPI_Alltoallw(const void *sendbuf, const int sendcounts[], const int sdispls
613
608
int MPI_Alltoallw_c (const void * sendbuf , const MPI_Count sendcounts [], const MPI_Aint sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const MPI_Count recvcounts [], const MPI_Aint rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm );
614
609
int MPI_Alltoallw_init (const void * sendbuf , const int sendcounts [], const int sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const int recvcounts [], const int rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm , MPI_Info info , MPI_Request * request );
615
610
int MPI_Alltoallw_init_c (const void * sendbuf , const MPI_Count sendcounts [], const MPI_Aint sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const MPI_Count recvcounts [], const MPI_Aint rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm , MPI_Info info , MPI_Request * request );
616
- int MPI_Attr_delete (MPI_Comm comm , int keyval ); /* deprecated: MPI-2.0 */
617
- int MPI_Attr_get (MPI_Comm comm , int keyval , void * attribute_val , int * flag ); /* deprecated: MPI-2.0 */
618
- int MPI_Attr_put (MPI_Comm comm , int keyval , void * attribute_val ); /* deprecated: MPI-2.0 */
619
611
int MPI_Barrier (MPI_Comm comm );
620
612
int MPI_Barrier_init (MPI_Comm comm , MPI_Info info , MPI_Request * request );
621
613
int MPI_Bcast (void * buffer , int count , MPI_Datatype datatype , int root , MPI_Comm comm );
@@ -807,7 +799,6 @@ int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
807
799
int MPI_Get_count_c (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count );
808
800
int MPI_Get_elements (const MPI_Status * status , MPI_Datatype datatype , int * count );
809
801
int MPI_Get_elements_c (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count );
810
- int MPI_Get_elements_x (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count ); /* deprecated: MPI-4.1 */
811
802
int MPI_Get_hw_resource_info (MPI_Info * hw_info );
812
803
int MPI_Get_library_version (char * version , int * resultlen );
813
804
int MPI_Get_processor_name (char * name , int * resultlen );
@@ -912,8 +903,6 @@ int MPI_Isendrecv_replace(void *buf, int count, MPI_Datatype datatype, int dest,
912
903
int MPI_Isendrecv_replace_c (void * buf , MPI_Count count , MPI_Datatype datatype , int dest , int sendtag , int source , int recvtag , MPI_Comm comm , MPI_Request * request );
913
904
int MPI_Issend (const void * buf , int count , MPI_Datatype datatype , int dest , int tag , MPI_Comm comm , MPI_Request * request );
914
905
int MPI_Issend_c (const void * buf , MPI_Count count , MPI_Datatype datatype , int dest , int tag , MPI_Comm comm , MPI_Request * request );
915
- int MPI_Keyval_create (MPI_Copy_function * copy_fn , MPI_Delete_function * delete_fn , int * keyval , void * extra_state ); /* deprecated: MPI-2.0 */
916
- int MPI_Keyval_free (int * keyval ); /* deprecated: MPI-2.0 */
917
906
int MPI_Lookup_name (const char * service_name , MPI_Info info , char * port_name );
918
907
int MPI_Mprobe (int source , int tag , MPI_Comm comm , MPI_Message * message , MPI_Status * status );
919
908
int MPI_Mrecv (void * buf , int count , MPI_Datatype datatype , MPI_Message * message , MPI_Status * status );
@@ -1051,7 +1040,6 @@ int MPI_Status_get_tag(MPI_Status *status, int *tag);
1051
1040
int MPI_Status_set_cancelled (MPI_Status * status , int flag );
1052
1041
int MPI_Status_set_elements (MPI_Status * status , MPI_Datatype datatype , int count );
1053
1042
int MPI_Status_set_elements_c (MPI_Status * status , MPI_Datatype datatype , MPI_Count count );
1054
- int MPI_Status_set_elements_x (MPI_Status * status , MPI_Datatype datatype , MPI_Count count ); /* deprecated: MPI-4.1 */
1055
1043
int MPI_Status_set_error (MPI_Status * status , int error );
1056
1044
int MPI_Status_set_source (MPI_Status * status , int source );
1057
1045
int MPI_Status_set_tag (MPI_Status * status , int tag );
@@ -1095,11 +1083,9 @@ int MPI_Type_get_envelope(MPI_Datatype datatype, int *num_integers, int *num_add
1095
1083
int MPI_Type_get_envelope_c (MPI_Datatype datatype , MPI_Count * num_integers , MPI_Count * num_addresses , MPI_Count * num_large_counts , MPI_Count * num_datatypes , int * combiner );
1096
1084
int MPI_Type_get_extent (MPI_Datatype datatype , MPI_Aint * lb , MPI_Aint * extent );
1097
1085
int MPI_Type_get_extent_c (MPI_Datatype datatype , MPI_Count * lb , MPI_Count * extent );
1098
- int MPI_Type_get_extent_x (MPI_Datatype datatype , MPI_Count * lb , MPI_Count * extent ); /* deprecated: MPI-4.1 */
1099
1086
int MPI_Type_get_name (MPI_Datatype datatype , char * type_name , int * resultlen );
1100
1087
int MPI_Type_get_true_extent (MPI_Datatype datatype , MPI_Aint * true_lb , MPI_Aint * true_extent );
1101
1088
int MPI_Type_get_true_extent_c (MPI_Datatype datatype , MPI_Count * true_lb , MPI_Count * true_extent );
1102
- int MPI_Type_get_true_extent_x (MPI_Datatype datatype , MPI_Count * true_lb , MPI_Count * true_extent ); /* deprecated: MPI-4.1 */
1103
1089
int MPI_Type_get_value_index (MPI_Datatype value_type , MPI_Datatype index_type , MPI_Datatype * pair_type );
1104
1090
int MPI_Type_indexed (int count , const int array_of_blocklengths [], const int array_of_displacements [], MPI_Datatype oldtype , MPI_Datatype * newtype );
1105
1091
int MPI_Type_indexed_c (MPI_Count count , const MPI_Count array_of_blocklengths [], const MPI_Count array_of_displacements [], MPI_Datatype oldtype , MPI_Datatype * newtype );
@@ -1108,7 +1094,6 @@ int MPI_Type_set_attr(MPI_Datatype datatype, int type_keyval, void *attribute_va
1108
1094
int MPI_Type_set_name (MPI_Datatype datatype , const char * type_name );
1109
1095
int MPI_Type_size (MPI_Datatype datatype , int * size );
1110
1096
int MPI_Type_size_c (MPI_Datatype datatype , MPI_Count * size );
1111
- int MPI_Type_size_x (MPI_Datatype datatype , MPI_Count * size ); /* deprecated: MPI-4.1 */
1112
1097
int MPI_Type_vector (int count , int blocklength , int stride , MPI_Datatype oldtype , MPI_Datatype * newtype );
1113
1098
int MPI_Type_vector_c (MPI_Count count , MPI_Count blocklength , MPI_Count stride , MPI_Datatype oldtype , MPI_Datatype * newtype );
1114
1099
int MPI_Unpack (const void * inbuf , int insize , int * position , void * outbuf , int outcount , MPI_Datatype datatype , MPI_Comm comm );
@@ -1196,6 +1181,25 @@ MPI_Session MPI_Session_f2c(MPI_Fint session);
1196
1181
MPI_Fint MPI_Win_c2f (MPI_Win win );
1197
1182
MPI_Win MPI_Win_f2c (MPI_Fint win );
1198
1183
1184
+ /* MPI deprecated types and constants */
1185
+ #define MPI_Copy_function MPI_Comm_copy_attr_function
1186
+ #define MPI_Delete_function MPI_Comm_delete_attr_function
1187
+ #define MPI_NULL_COPY_FN MPI_COMM_NULL_COPY_FN
1188
+ #define MPI_DUP_FN MPI_COMM_DUP_FN
1189
+ #define MPI_NULL_DELETE_FN MPI_COMM_NULL_DELETE_FN
1190
+
1191
+ /* MPI deprecated functions */
1192
+ #define MPI_Attr_delete MPI_Comm_delete_attr
1193
+ #define MPI_Attr_get MPI_Comm_get_attr
1194
+ #define MPI_Attr_put MPI_Comm_set_attr
1195
+ #define MPI_Get_elements_x MPI_Get_elements_c
1196
+ #define MPI_Keyval_create MPI_Comm_create_keyval
1197
+ #define MPI_Keyval_free MPI_Comm_free_keyval
1198
+ #define MPI_Status_set_elements_x MPI_Status_set_elements_c
1199
+ #define MPI_Type_get_extent_x MPI_Type_get_extent_c
1200
+ #define MPI_Type_get_true_extent_x MPI_Type_get_true_extent_c
1201
+ #define MPI_Type_size_x MPI_Type_size_c
1202
+
1199
1203
/* MPI_T functions */
1200
1204
int MPI_T_category_changed (int * update_number );
1201
1205
int MPI_T_category_get_categories (int cat_index , int len , int indices []);
@@ -1281,9 +1285,6 @@ int PMPI_Alltoallw(const void *sendbuf, const int sendcounts[], const int sdispl
1281
1285
int PMPI_Alltoallw_c (const void * sendbuf , const MPI_Count sendcounts [], const MPI_Aint sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const MPI_Count recvcounts [], const MPI_Aint rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm );
1282
1286
int PMPI_Alltoallw_init (const void * sendbuf , const int sendcounts [], const int sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const int recvcounts [], const int rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm , MPI_Info info , MPI_Request * request );
1283
1287
int PMPI_Alltoallw_init_c (const void * sendbuf , const MPI_Count sendcounts [], const MPI_Aint sdispls [], const MPI_Datatype sendtypes [], void * recvbuf , const MPI_Count recvcounts [], const MPI_Aint rdispls [], const MPI_Datatype recvtypes [], MPI_Comm comm , MPI_Info info , MPI_Request * request );
1284
- int PMPI_Attr_delete (MPI_Comm comm , int keyval );
1285
- int PMPI_Attr_get (MPI_Comm comm , int keyval , void * attribute_val , int * flag );
1286
- int PMPI_Attr_put (MPI_Comm comm , int keyval , void * attribute_val );
1287
1288
int PMPI_Barrier (MPI_Comm comm );
1288
1289
int PMPI_Barrier_init (MPI_Comm comm , MPI_Info info , MPI_Request * request );
1289
1290
int PMPI_Bcast (void * buffer , int count , MPI_Datatype datatype , int root , MPI_Comm comm );
@@ -1475,7 +1476,6 @@ int PMPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
1475
1476
int PMPI_Get_count_c (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count );
1476
1477
int PMPI_Get_elements (const MPI_Status * status , MPI_Datatype datatype , int * count );
1477
1478
int PMPI_Get_elements_c (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count );
1478
- int PMPI_Get_elements_x (const MPI_Status * status , MPI_Datatype datatype , MPI_Count * count );
1479
1479
int PMPI_Get_hw_resource_info (MPI_Info * hw_info );
1480
1480
int PMPI_Get_library_version (char * version , int * resultlen );
1481
1481
int PMPI_Get_processor_name (char * name , int * resultlen );
@@ -1580,8 +1580,6 @@ int PMPI_Isendrecv_replace(void *buf, int count, MPI_Datatype datatype, int dest
1580
1580
int PMPI_Isendrecv_replace_c (void * buf , MPI_Count count , MPI_Datatype datatype , int dest , int sendtag , int source , int recvtag , MPI_Comm comm , MPI_Request * request );
1581
1581
int PMPI_Issend (const void * buf , int count , MPI_Datatype datatype , int dest , int tag , MPI_Comm comm , MPI_Request * request );
1582
1582
int PMPI_Issend_c (const void * buf , MPI_Count count , MPI_Datatype datatype , int dest , int tag , MPI_Comm comm , MPI_Request * request );
1583
- int PMPI_Keyval_create (MPI_Copy_function * copy_fn , MPI_Delete_function * delete_fn , int * keyval , void * extra_state );
1584
- int PMPI_Keyval_free (int * keyval );
1585
1583
int PMPI_Lookup_name (const char * service_name , MPI_Info info , char * port_name );
1586
1584
int PMPI_Mprobe (int source , int tag , MPI_Comm comm , MPI_Message * message , MPI_Status * status );
1587
1585
int PMPI_Mrecv (void * buf , int count , MPI_Datatype datatype , MPI_Message * message , MPI_Status * status );
@@ -1719,7 +1717,6 @@ int PMPI_Status_get_tag(MPI_Status *status, int *tag);
1719
1717
int PMPI_Status_set_cancelled (MPI_Status * status , int flag );
1720
1718
int PMPI_Status_set_elements (MPI_Status * status , MPI_Datatype datatype , int count );
1721
1719
int PMPI_Status_set_elements_c (MPI_Status * status , MPI_Datatype datatype , MPI_Count count );
1722
- int PMPI_Status_set_elements_x (MPI_Status * status , MPI_Datatype datatype , MPI_Count count );
1723
1720
int PMPI_Status_set_error (MPI_Status * status , int error );
1724
1721
int PMPI_Status_set_source (MPI_Status * status , int source );
1725
1722
int PMPI_Status_set_tag (MPI_Status * status , int tag );
@@ -1763,11 +1760,9 @@ int PMPI_Type_get_envelope(MPI_Datatype datatype, int *num_integers, int *num_ad
1763
1760
int PMPI_Type_get_envelope_c (MPI_Datatype datatype , MPI_Count * num_integers , MPI_Count * num_addresses , MPI_Count * num_large_counts , MPI_Count * num_datatypes , int * combiner );
1764
1761
int PMPI_Type_get_extent (MPI_Datatype datatype , MPI_Aint * lb , MPI_Aint * extent );
1765
1762
int PMPI_Type_get_extent_c (MPI_Datatype datatype , MPI_Count * lb , MPI_Count * extent );
1766
- int PMPI_Type_get_extent_x (MPI_Datatype datatype , MPI_Count * lb , MPI_Count * extent );
1767
1763
int PMPI_Type_get_name (MPI_Datatype datatype , char * type_name , int * resultlen );
1768
1764
int PMPI_Type_get_true_extent (MPI_Datatype datatype , MPI_Aint * true_lb , MPI_Aint * true_extent );
1769
1765
int PMPI_Type_get_true_extent_c (MPI_Datatype datatype , MPI_Count * true_lb , MPI_Count * true_extent );
1770
- int PMPI_Type_get_true_extent_x (MPI_Datatype datatype , MPI_Count * true_lb , MPI_Count * true_extent );
1771
1766
int PMPI_Type_get_value_index (MPI_Datatype value_type , MPI_Datatype index_type , MPI_Datatype * pair_type );
1772
1767
int PMPI_Type_indexed (int count , const int array_of_blocklengths [], const int array_of_displacements [], MPI_Datatype oldtype , MPI_Datatype * newtype );
1773
1768
int PMPI_Type_indexed_c (MPI_Count count , const MPI_Count array_of_blocklengths [], const MPI_Count array_of_displacements [], MPI_Datatype oldtype , MPI_Datatype * newtype );
@@ -1776,7 +1771,6 @@ int PMPI_Type_set_attr(MPI_Datatype datatype, int type_keyval, void *attribute_v
1776
1771
int PMPI_Type_set_name (MPI_Datatype datatype , const char * type_name );
1777
1772
int PMPI_Type_size (MPI_Datatype datatype , int * size );
1778
1773
int PMPI_Type_size_c (MPI_Datatype datatype , MPI_Count * size );
1779
- int PMPI_Type_size_x (MPI_Datatype datatype , MPI_Count * size );
1780
1774
int PMPI_Type_vector (int count , int blocklength , int stride , MPI_Datatype oldtype , MPI_Datatype * newtype );
1781
1775
int PMPI_Type_vector_c (MPI_Count count , MPI_Count blocklength , MPI_Count stride , MPI_Datatype oldtype , MPI_Datatype * newtype );
1782
1776
int PMPI_Unpack (const void * inbuf , int insize , int * position , void * outbuf , int outcount , MPI_Datatype datatype , MPI_Comm comm );
@@ -1864,6 +1858,18 @@ MPI_Session PMPI_Session_f2c(MPI_Fint session);
1864
1858
MPI_Fint PMPI_Win_c2f (MPI_Win win );
1865
1859
MPI_Win PMPI_Win_f2c (MPI_Fint win );
1866
1860
1861
+ /* PMPI deprecated functions */
1862
+ #define PMPI_Attr_delete PMPI_Comm_delete_attr
1863
+ #define PMPI_Attr_get PMPI_Comm_get_attr
1864
+ #define PMPI_Attr_put PMPI_Comm_set_attr
1865
+ #define PMPI_Get_elements_x PMPI_Get_elements_c
1866
+ #define PMPI_Keyval_create PMPI_Comm_create_keyval
1867
+ #define PMPI_Keyval_free PMPI_Comm_free_keyval
1868
+ #define PMPI_Status_set_elements_x PMPI_Status_set_elements_c
1869
+ #define PMPI_Type_get_extent_x PMPI_Type_get_extent_c
1870
+ #define PMPI_Type_get_true_extent_x PMPI_Type_get_true_extent_c
1871
+ #define PMPI_Type_size_x PMPI_Type_size_c
1872
+
1867
1873
/* PMPI_T functions */
1868
1874
int PMPI_T_category_changed (int * update_number );
1869
1875
int PMPI_T_category_get_categories (int cat_index , int len , int indices []);
0 commit comments