Skip to content

Commit 6488a56

Browse files
committed
Add fromint/toint routines
1 parent c0d4464 commit 6488a56

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

mpi.h

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,29 @@ MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2);
11631163
double MPI_Wtick(void);
11641164
double MPI_Wtime(void);
11651165

1166+
MPI_Comm MPI_Comm_fromint(int comm);
1167+
int MPI_Comm_toint(MPI_Comm comm);
1168+
MPI_Errhandler MPI_Errhandler_fromint(int errhandler);
1169+
int MPI_Errhandler_toint(MPI_Errhandler errhandler);
1170+
MPI_File MPI_File_fromint(int file);
1171+
int MPI_File_toint(MPI_File file);
1172+
MPI_Group MPI_Group_fromint(int group);
1173+
int MPI_Group_toint(MPI_Group group);
1174+
MPI_Info MPI_Info_fromint(int info);
1175+
int MPI_Info_toint(MPI_Info info);
1176+
MPI_Message MPI_Message_fromint(int message);
1177+
int MPI_Message_toint(MPI_Message message);
1178+
MPI_Op MPI_Op_fromint(int op);
1179+
int MPI_Op_toint(MPI_Op op);
1180+
MPI_Request MPI_Request_fromint(int request);
1181+
int MPI_Request_toint(MPI_Request request);
1182+
MPI_Session MPI_Session_fromint(int session);
1183+
int MPI_Session_toint(MPI_Session session);
1184+
MPI_Datatype MPI_Type_fromint(int datatype);
1185+
int MPI_Type_toint(MPI_Datatype datatype);
1186+
MPI_Win MPI_Win_fromint(int win);
1187+
int MPI_Win_toint(MPI_Win win);
1188+
11661189
int MPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
11671190
int MPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
11681191
int MPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status);
@@ -1833,6 +1856,29 @@ MPI_Aint PMPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2);
18331856
double PMPI_Wtick(void);
18341857
double PMPI_Wtime(void);
18351858

1859+
MPI_Comm PMPI_Comm_fromint(int comm);
1860+
int PMPI_Comm_toint(MPI_Comm comm);
1861+
MPI_Errhandler PMPI_Errhandler_fromint(int errhandler);
1862+
int PMPI_Errhandler_toint(MPI_Errhandler errhandler);
1863+
MPI_File PMPI_File_fromint(int file);
1864+
int PMPI_File_toint(MPI_File file);
1865+
MPI_Group PMPI_Group_fromint(int group);
1866+
int PMPI_Group_toint(MPI_Group group);
1867+
MPI_Info PMPI_Info_fromint(int info);
1868+
int PMPI_Info_toint(MPI_Info info);
1869+
MPI_Message PMPI_Message_fromint(int message);
1870+
int PMPI_Message_toint(MPI_Message message);
1871+
MPI_Op PMPI_Op_fromint(int op);
1872+
int PMPI_Op_toint(MPI_Op op);
1873+
MPI_Request PMPI_Request_fromint(int request);
1874+
int PMPI_Request_toint(MPI_Request request);
1875+
MPI_Session PMPI_Session_fromint(int session);
1876+
int PMPI_Session_toint(MPI_Session session);
1877+
MPI_Datatype PMPI_Type_fromint(int datatype);
1878+
int PMPI_Type_toint(MPI_Datatype datatype);
1879+
MPI_Win PMPI_Win_fromint(int win);
1880+
int PMPI_Win_toint(MPI_Win win);
1881+
18361882
int PMPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
18371883
int PMPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
18381884
int PMPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status);

mpistubs.c

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,29 @@ MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2) { abort(); return 0; }
589589
double MPI_Wtick(void) { abort(); return 0; }
590590
double MPI_Wtime(void) { abort(); return 0; }
591591

592+
MPI_Comm MPI_Comm_fromint(int comm) { abort(); return NULL; }
593+
int MPI_Comm_toint(MPI_Comm comm) { abort(); return 0; }
594+
MPI_Errhandler MPI_Errhandler_fromint(int errhandler) { abort(); return NULL; }
595+
int MPI_Errhandler_toint(MPI_Errhandler errhandler) { abort(); return 0; }
596+
MPI_File MPI_File_fromint(int file) { abort(); return NULL; }
597+
int MPI_File_toint(MPI_File file) { abort(); return 0; }
598+
MPI_Group MPI_Group_fromint(int group) { abort(); return NULL; }
599+
int MPI_Group_toint(MPI_Group group) { abort(); return 0; }
600+
MPI_Info MPI_Info_fromint(int info) { abort(); return NULL; }
601+
int MPI_Info_toint(MPI_Info info) { abort(); return 0; }
602+
MPI_Message MPI_Message_fromint(int message) { abort(); return NULL; }
603+
int MPI_Message_toint(MPI_Message message) { abort(); return 0; }
604+
MPI_Op MPI_Op_fromint(int op) { abort(); return NULL; }
605+
int MPI_Op_toint(MPI_Op op) { abort(); return 0; }
606+
MPI_Request MPI_Request_fromint(int request) { abort(); return NULL; }
607+
int MPI_Request_toint(MPI_Request request) { abort(); return 0; }
608+
MPI_Session MPI_Session_fromint(int session) { abort(); return NULL; }
609+
int MPI_Session_toint(MPI_Session session) { abort(); return 0; }
610+
MPI_Datatype MPI_Type_fromint(int datatype) { abort(); return NULL; }
611+
int MPI_Type_toint(MPI_Datatype datatype) { abort(); return 0; }
612+
MPI_Win MPI_Win_fromint(int win) { abort(); return NULL; }
613+
int MPI_Win_toint(MPI_Win win) { abort(); return 0; }
614+
592615
int MPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status) { abort(); return 0; }
593616
int MPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status) { abort(); return 0; }
594617
int MPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status) { abort(); return 0; }
@@ -1259,6 +1282,29 @@ MPI_Aint PMPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2) { abort(); return 0; }
12591282
double PMPI_Wtick(void) { abort(); return 0; }
12601283
double PMPI_Wtime(void) { abort(); return 0; }
12611284

1285+
MPI_Comm PMPI_Comm_fromint(int comm) { abort(); return NULL; }
1286+
int PMPI_Comm_toint(MPI_Comm comm) { abort(); return 0; }
1287+
MPI_Errhandler PMPI_Errhandler_fromint(int errhandler) { abort(); return NULL; }
1288+
int PMPI_Errhandler_toint(MPI_Errhandler errhandler) { abort(); return 0; }
1289+
MPI_File PMPI_File_fromint(int file) { abort(); return NULL; }
1290+
int PMPI_File_toint(MPI_File file) { abort(); return 0; }
1291+
MPI_Group PMPI_Group_fromint(int group) { abort(); return NULL; }
1292+
int PMPI_Group_toint(MPI_Group group) { abort(); return 0; }
1293+
MPI_Info PMPI_Info_fromint(int info) { abort(); return NULL; }
1294+
int PMPI_Info_toint(MPI_Info info) { abort(); return 0; }
1295+
MPI_Message PMPI_Message_fromint(int message) { abort(); return NULL; }
1296+
int PMPI_Message_toint(MPI_Message message) { abort(); return 0; }
1297+
MPI_Op PMPI_Op_fromint(int op) { abort(); return NULL; }
1298+
int PMPI_Op_toint(MPI_Op op) { abort(); return 0; }
1299+
MPI_Request PMPI_Request_fromint(int request) { abort(); return NULL; }
1300+
int PMPI_Request_toint(MPI_Request request) { abort(); return 0; }
1301+
MPI_Session PMPI_Session_fromint(int session) { abort(); return NULL; }
1302+
int PMPI_Session_toint(MPI_Session session) { abort(); return 0; }
1303+
MPI_Datatype PMPI_Type_fromint(int datatype) { abort(); return NULL; }
1304+
int PMPI_Type_toint(MPI_Datatype datatype) { abort(); return 0; }
1305+
MPI_Win PMPI_Win_fromint(int win) { abort(); return NULL; }
1306+
int PMPI_Win_toint(MPI_Win win) { abort(); return 0; }
1307+
12621308
int PMPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status) { abort(); return 0; }
12631309
int PMPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status) { abort(); return 0; }
12641310
int PMPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status) { abort(); return 0; }

0 commit comments

Comments
 (0)