Skip to content

Commit a195381

Browse files
committed
Add fromint/toint routines
1 parent 990e9d2 commit a195381

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
@@ -1169,6 +1169,29 @@ MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2);
11691169
double MPI_Wtick(void);
11701170
double MPI_Wtime(void);
11711171

1172+
MPI_Comm MPI_Comm_fromint(int comm);
1173+
int MPI_Comm_toint(MPI_Comm comm);
1174+
MPI_Errhandler MPI_Errhandler_fromint(int errhandler);
1175+
int MPI_Errhandler_toint(MPI_Errhandler errhandler);
1176+
MPI_File MPI_File_fromint(int file);
1177+
int MPI_File_toint(MPI_File file);
1178+
MPI_Group MPI_Group_fromint(int group);
1179+
int MPI_Group_toint(MPI_Group group);
1180+
MPI_Info MPI_Info_fromint(int info);
1181+
int MPI_Info_toint(MPI_Info info);
1182+
MPI_Message MPI_Message_fromint(int message);
1183+
int MPI_Message_toint(MPI_Message message);
1184+
MPI_Op MPI_Op_fromint(int op);
1185+
int MPI_Op_toint(MPI_Op op);
1186+
MPI_Request MPI_Request_fromint(int request);
1187+
int MPI_Request_toint(MPI_Request request);
1188+
MPI_Session MPI_Session_fromint(int session);
1189+
int MPI_Session_toint(MPI_Session session);
1190+
MPI_Datatype MPI_Type_fromint(int datatype);
1191+
int MPI_Type_toint(MPI_Datatype datatype);
1192+
MPI_Win MPI_Win_fromint(int win);
1193+
int MPI_Win_toint(MPI_Win win);
1194+
11721195
int MPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
11731196
int MPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
11741197
int MPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status);
@@ -1839,6 +1862,29 @@ MPI_Aint PMPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2);
18391862
double PMPI_Wtick(void);
18401863
double PMPI_Wtime(void);
18411864

1865+
MPI_Comm PMPI_Comm_fromint(int comm);
1866+
int PMPI_Comm_toint(MPI_Comm comm);
1867+
MPI_Errhandler PMPI_Errhandler_fromint(int errhandler);
1868+
int PMPI_Errhandler_toint(MPI_Errhandler errhandler);
1869+
MPI_File PMPI_File_fromint(int file);
1870+
int PMPI_File_toint(MPI_File file);
1871+
MPI_Group PMPI_Group_fromint(int group);
1872+
int PMPI_Group_toint(MPI_Group group);
1873+
MPI_Info PMPI_Info_fromint(int info);
1874+
int PMPI_Info_toint(MPI_Info info);
1875+
MPI_Message PMPI_Message_fromint(int message);
1876+
int PMPI_Message_toint(MPI_Message message);
1877+
MPI_Op PMPI_Op_fromint(int op);
1878+
int PMPI_Op_toint(MPI_Op op);
1879+
MPI_Request PMPI_Request_fromint(int request);
1880+
int PMPI_Request_toint(MPI_Request request);
1881+
MPI_Session PMPI_Session_fromint(int session);
1882+
int PMPI_Session_toint(MPI_Session session);
1883+
MPI_Datatype PMPI_Type_fromint(int datatype);
1884+
int PMPI_Type_toint(MPI_Datatype datatype);
1885+
MPI_Win PMPI_Win_fromint(int win);
1886+
int PMPI_Win_toint(MPI_Win win);
1887+
18421888
int PMPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
18431889
int PMPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
18441890
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
@@ -595,6 +595,29 @@ MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2) { abort(); return 0; }
595595
double MPI_Wtick(void) { abort(); return 0; }
596596
double MPI_Wtime(void) { abort(); return 0; }
597597

598+
MPI_Comm MPI_Comm_fromint(int comm) { abort(); return NULL; }
599+
int MPI_Comm_toint(MPI_Comm comm) { abort(); return 0; }
600+
MPI_Errhandler MPI_Errhandler_fromint(int errhandler) { abort(); return NULL; }
601+
int MPI_Errhandler_toint(MPI_Errhandler errhandler) { abort(); return 0; }
602+
MPI_File MPI_File_fromint(int file) { abort(); return NULL; }
603+
int MPI_File_toint(MPI_File file) { abort(); return 0; }
604+
MPI_Group MPI_Group_fromint(int group) { abort(); return NULL; }
605+
int MPI_Group_toint(MPI_Group group) { abort(); return 0; }
606+
MPI_Info MPI_Info_fromint(int info) { abort(); return NULL; }
607+
int MPI_Info_toint(MPI_Info info) { abort(); return 0; }
608+
MPI_Message MPI_Message_fromint(int message) { abort(); return NULL; }
609+
int MPI_Message_toint(MPI_Message message) { abort(); return 0; }
610+
MPI_Op MPI_Op_fromint(int op) { abort(); return NULL; }
611+
int MPI_Op_toint(MPI_Op op) { abort(); return 0; }
612+
MPI_Request MPI_Request_fromint(int request) { abort(); return NULL; }
613+
int MPI_Request_toint(MPI_Request request) { abort(); return 0; }
614+
MPI_Session MPI_Session_fromint(int session) { abort(); return NULL; }
615+
int MPI_Session_toint(MPI_Session session) { abort(); return 0; }
616+
MPI_Datatype MPI_Type_fromint(int datatype) { abort(); return NULL; }
617+
int MPI_Type_toint(MPI_Datatype datatype) { abort(); return 0; }
618+
MPI_Win MPI_Win_fromint(int win) { abort(); return NULL; }
619+
int MPI_Win_toint(MPI_Win win) { abort(); return 0; }
620+
598621
int MPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status) { abort(); return 0; }
599622
int MPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status) { abort(); return 0; }
600623
int MPI_Status_c2f08(const MPI_Status *c_status, MPI_F08_status *f08_status) { abort(); return 0; }
@@ -1265,6 +1288,29 @@ MPI_Aint PMPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2) { abort(); return 0; }
12651288
double PMPI_Wtick(void) { abort(); return 0; }
12661289
double PMPI_Wtime(void) { abort(); return 0; }
12671290

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

0 commit comments

Comments
 (0)