Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Incorporate simgrid-java in simgrid-java/.
[simgrid.git] / src / smpi / smpi_mpi.c
1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5   * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "private.h"
8
9 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_mpi, smpi,
10                                 "Logging specific to SMPI (mpi)");
11
12 /* MPI User level calls */
13
14 int MPI_Init(int *argc, char ***argv)
15 {
16   return PMPI_Init(argc, argv);
17 }
18
19 int MPI_Finalize(void)
20 {
21   return PMPI_Finalize();
22 }
23
24 int MPI_Init_thread(int *argc, char ***argv, int required, int *provided)
25 {
26   return PMPI_Init_thread(argc, argv, required, provided);
27 }
28
29 int MPI_Query_thread(int *provided)
30 {
31   return PMPI_Query_thread(provided);
32 }
33
34 int MPI_Is_thread_main(int *flag)
35 {
36   return PMPI_Is_thread_main(flag);
37 }
38
39 int MPI_Abort(MPI_Comm comm, int errorcode)
40 {
41   return PMPI_Abort(comm, errorcode);
42 }
43
44 double MPI_Wtime(void)
45 {
46   return PMPI_Wtime();
47 }
48
49 double MPI_Wtick(void)
50 {
51   return PMPI_Wtick();
52 }
53
54 int MPI_Address(void *location, MPI_Aint * address)
55 {
56   return PMPI_Address(location, address);
57 }
58
59 int MPI_Type_free(MPI_Datatype * datatype)
60 {
61   return PMPI_Type_free(datatype);
62 }
63
64 int MPI_Pcontrol(const int level )
65 {
66   return PMPI_Pcontrol(level);
67 }
68
69 int MPI_Type_size(MPI_Datatype datatype, int *size)
70 {
71   return PMPI_Type_size(datatype, size);
72 }
73
74 int MPI_Type_get_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
75 {
76   return PMPI_Type_get_extent(datatype, lb, extent);
77 }
78
79 int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint * extent)
80 {
81   return PMPI_Type_extent(datatype, extent);
82 }
83
84 int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint * disp)
85 {
86   return PMPI_Type_lb(datatype, disp);
87 }
88
89 int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint * disp)
90 {
91   return PMPI_Type_ub(datatype, disp);
92 }
93
94 int MPI_Op_create(MPI_User_function * function, int commute, MPI_Op * op)
95 {
96   return PMPI_Op_create(function, commute, op);
97 }
98
99 int MPI_Op_free(MPI_Op * op)
100 {
101   return PMPI_Op_free(op);
102 }
103
104 int MPI_Group_free(MPI_Group * group)
105 {
106   return PMPI_Group_free(group);
107 }
108
109 int MPI_Group_size(MPI_Group group, int *size)
110 {
111   return PMPI_Group_size(group, size);
112 }
113
114 int MPI_Group_rank(MPI_Group group, int *rank)
115 {
116   return PMPI_Group_rank(group, rank);
117 }
118
119 int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1,
120                               MPI_Group group2, int *ranks2)
121 {
122   return PMPI_Group_translate_ranks(group1, n, ranks1, group2, ranks2);
123 }
124
125 int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result)
126 {
127   return PMPI_Group_compare(group1, group2, result);
128 }
129
130 int MPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
131 {
132   return PMPI_Group_union(group1, group2, newgroup);
133 }
134
135 int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
136 {
137   return PMPI_Group_intersection(group1, group2, newgroup);
138 }
139
140 int MPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
141 {
142   return PMPI_Group_difference(group1, group2, newgroup);
143 }
144
145 int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
146 {
147   return PMPI_Group_incl(group, n, ranks, newgroup);
148 }
149
150 int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
151 {
152   return PMPI_Group_excl(group, n, ranks, newgroup);
153 }
154
155 int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
156                          MPI_Group * newgroup)
157 {
158   return PMPI_Group_range_incl(group, n, ranges, newgroup);
159 }
160
161 int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],
162                          MPI_Group * newgroup)
163 {
164   return PMPI_Group_range_excl(group, n, ranges, newgroup);
165 }
166
167 int MPI_Comm_rank(MPI_Comm comm, int *rank)
168 {
169   return PMPI_Comm_rank(comm, rank);
170 }
171
172 int MPI_Comm_size(MPI_Comm comm, int *size)
173 {
174   return PMPI_Comm_size(comm, size);
175 }
176
177 int MPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag)
178 {
179   return PMPI_Comm_get_attr (comm, comm_keyval, attribute_val, flag);
180 }
181
182 int MPI_Comm_get_name (MPI_Comm comm, char* name, int* len)
183 {
184   return PMPI_Comm_get_name(comm, name, len);
185 }
186
187 int MPI_Comm_group(MPI_Comm comm, MPI_Group * group)
188 {
189   return PMPI_Comm_group(comm, group);
190 }
191
192 int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result)
193 {
194   return PMPI_Comm_compare(comm1, comm2, result);
195 }
196
197 int MPI_Comm_dup(MPI_Comm comm, MPI_Comm * newcomm)
198 {
199   return PMPI_Comm_dup(comm, newcomm);
200 }
201
202 int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm * newcomm)
203 {
204   return PMPI_Comm_create(comm, group, newcomm);
205 }
206
207 int MPI_Comm_free(MPI_Comm * comm)
208 {
209   return PMPI_Comm_free(comm);
210 }
211
212 int MPI_Comm_disconnect(MPI_Comm * comm)
213 {
214   return PMPI_Comm_disconnect(comm);
215 }
216
217 int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm* comm_out)
218 {
219   return PMPI_Comm_split(comm, color, key, comm_out);
220 }
221
222 int MPI_Send_init(void *buf, int count, MPI_Datatype datatype, int dst,
223                   int tag, MPI_Comm comm, MPI_Request * request)
224 {
225   return PMPI_Send_init(buf, count, datatype, dst, tag, comm, request);
226 }
227
228 int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int src,
229                   int tag, MPI_Comm comm, MPI_Request * request)
230 {
231   return PMPI_Recv_init(buf, count, datatype, src, tag, comm, request);
232 }
233
234 int MPI_Start(MPI_Request * request)
235 {
236   return PMPI_Start(request);
237 }
238
239 int MPI_Startall(int count, MPI_Request * requests)
240 {
241   return PMPI_Startall(count, requests);
242 }
243
244 int MPI_Request_free(MPI_Request * request)
245 {
246   return PMPI_Request_free(request);
247 }
248
249 int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src,
250               int tag, MPI_Comm comm, MPI_Request * request)
251 {
252   return PMPI_Irecv(buf, count, datatype, src, tag, comm, request);
253 }
254
255 int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst,
256               int tag, MPI_Comm comm, MPI_Request * request)
257 {
258   return PMPI_Isend(buf, count, datatype, dst, tag, comm, request);
259 }
260
261 int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag,
262              MPI_Comm comm, MPI_Status * status)
263 {
264   return PMPI_Recv(buf, count, datatype, src, tag, comm, status);
265 }
266
267 int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag,
268              MPI_Comm comm)
269 {
270   return PMPI_Send(buf, count, datatype, dst, tag, comm);
271 }
272
273 int MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
274                  int dst, int sendtag, void *recvbuf, int recvcount,
275                  MPI_Datatype recvtype, int src, int recvtag,
276                  MPI_Comm comm, MPI_Status * status)
277 {
278   return PMPI_Sendrecv(sendbuf, sendcount, sendtype, dst, sendtag,
279                        recvbuf, recvcount, recvtype, src, recvtag,
280                        comm, status);
281 }
282
283 int MPI_Sendrecv_replace(void *buf, int count, MPI_Datatype datatype,
284                          int dst, int sendtag, int src, int recvtag,
285                          MPI_Comm comm, MPI_Status * status)
286 {
287   return PMPI_Sendrecv_replace(buf, count, datatype, dst, sendtag, src,
288                                recvtag, comm, status);
289 }
290
291 int MPI_Test(MPI_Request * request, int *flag, MPI_Status * status)
292 {
293   return PMPI_Test(request, flag, status);
294 }
295
296 int MPI_Testany(int count, MPI_Request requests[], int *index, int *flag,
297                 MPI_Status * status)
298 {
299   return PMPI_Testany(count, requests, index, flag, status);
300 }
301
302 int MPI_Wait(MPI_Request * request, MPI_Status * status)
303 {
304   return PMPI_Wait(request, status);
305 }
306
307 int MPI_Waitany(int count, MPI_Request requests[], int *index, MPI_Status * status)
308 {
309   return PMPI_Waitany(count, requests, index, status);
310 }
311
312 int MPI_Waitall(int count, MPI_Request requests[], MPI_Status status[])
313 {
314   return PMPI_Waitall(count, requests, status);
315 }
316
317 int MPI_Waitsome(int incount, MPI_Request requests[], int *outcount,
318                  int *indices, MPI_Status status[])
319 {
320   return PMPI_Waitsome(incount, requests, outcount, indices, status);
321 }
322
323 int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm)
324 {
325   return PMPI_Bcast(buf, count, datatype, root, comm);
326 }
327
328 int MPI_Barrier(MPI_Comm comm)
329 {
330   return PMPI_Barrier(comm);
331 }
332
333 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
334                void *recvbuf, int recvcount, MPI_Datatype recvtype,
335                int root, MPI_Comm comm)
336 {
337   return PMPI_Gather(sendbuf, sendcount, sendtype,
338                      recvbuf, recvcount, recvtype,
339                      root, comm);
340 }
341
342 int MPI_Gatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
343                 void *recvbuf, int *recvcounts, int *displs,
344                 MPI_Datatype recvtype, int root, MPI_Comm comm)
345 {
346   return PMPI_Gatherv(sendbuf, sendcount, sendtype,
347                       recvbuf, recvcounts, displs, recvtype,
348                       root, comm);
349 }
350
351 int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
352                   void *recvbuf, int recvcount, MPI_Datatype recvtype,
353                   MPI_Comm comm)
354 {
355   return PMPI_Allgather(sendbuf, sendcount, sendtype,
356                         recvbuf, recvcount, recvtype,
357                         comm);
358 }
359
360 int MPI_Allgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
361                    void *recvbuf, int *recvcounts, int *displs,
362                    MPI_Datatype recvtype, MPI_Comm comm)
363 {
364   return PMPI_Allgatherv(sendbuf, sendcount, sendtype,
365                          recvbuf, recvcounts, displs, recvtype,
366                          comm);
367 }
368
369 int MPI_Scatter(void *sendbuf, int sendcount, MPI_Datatype sendtype,
370                 void *recvbuf, int recvcount, MPI_Datatype recvtype,
371                 int root, MPI_Comm comm)
372 {
373   return PMPI_Scatter(sendbuf, sendcount, sendtype,
374                       recvbuf, recvcount, recvtype,
375                       root, comm);
376 }
377
378 int MPI_Scatterv(void *sendbuf, int *sendcounts, int *displs,
379                  MPI_Datatype sendtype, void *recvbuf, int recvcount,
380                  MPI_Datatype recvtype, int root, MPI_Comm comm)
381 {
382   return PMPI_Scatterv(sendbuf, sendcounts, displs, sendtype,
383                        recvbuf, recvcount, recvtype,
384                        root, comm);
385 }
386
387 int MPI_Reduce(void *sendbuf, void *recvbuf, int count,
388                MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm)
389 {
390   return PMPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm);
391 }
392
393 int MPI_Allreduce(void *sendbuf, void *recvbuf, int count,
394                   MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
395 {
396   return PMPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm);
397 }
398
399 int MPI_Scan(void *sendbuf, void *recvbuf, int count,
400              MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
401 {
402   return PMPI_Scan(sendbuf, recvbuf, count, datatype, op, comm);
403 }
404
405 int MPI_Reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts,
406                        MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
407 {
408   return PMPI_Reduce_scatter(sendbuf, recvbuf, recvcounts, datatype, op, comm);
409 }
410
411 int MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype sendtype,
412                  void *recvbuf, int recvcount, MPI_Datatype recvtype,
413                  MPI_Comm comm)
414 {
415   return PMPI_Alltoall(sendbuf, sendcount, sendtype,
416                        recvbuf, recvcount, recvtype,
417                        comm);
418 }
419
420 int MPI_Alltoallv(void *sendbuf, int *sendcounts, int *senddisps,
421                   MPI_Datatype sendtype, void *recvbuf, int *recvcounts,
422                   int *recvdisps, MPI_Datatype recvtype, MPI_Comm comm)
423 {
424   return PMPI_Alltoallv(sendbuf, sendcounts, senddisps, sendtype,
425                         recvbuf, recvcounts, recvdisps, recvtype,
426                         comm);
427 }
428
429
430 int MPI_Get_processor_name(char *name, int *resultlen)
431 {
432   return PMPI_Get_processor_name(name, resultlen);
433 }
434
435 int MPI_Get_count(MPI_Status * status, MPI_Datatype datatype, int *count)
436 {
437   return PMPI_Get_count(status, datatype, count);
438 }
439
440 int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm, int* size) {
441   return PMPI_Pack_size(incount, datatype, comm, size);
442 }
443
444 int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int* coords) {
445   return PMPI_Cart_coords(comm, rank, maxdims, coords);
446 }
447
448 int MPI_Cart_create(MPI_Comm comm_old, int ndims, int* dims, int* periods, int reorder, MPI_Comm* comm_cart) {
449   return PMPI_Cart_create(comm_old, ndims, dims, periods, reorder, comm_cart);
450 }
451
452 int MPI_Cart_get(MPI_Comm comm, int maxdims, int* dims, int* periods, int* coords) {
453   return PMPI_Cart_get(comm, maxdims, dims, periods, coords);
454 }
455
456 int MPI_Cart_map(MPI_Comm comm_old, int ndims, int* dims, int* periods, int* newrank) {
457   return PMPI_Cart_map(comm_old, ndims, dims, periods, newrank);
458 }
459
460 int MPI_Cart_rank(MPI_Comm comm, int* coords, int* rank) {
461   return PMPI_Cart_rank(comm, coords, rank);
462 }
463
464 int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int* source, int* dest) {
465   return PMPI_Cart_shift(comm, direction, displ, source, dest);
466 }
467
468 int MPI_Cart_sub(MPI_Comm comm, int* remain_dims, MPI_Comm* comm_new) {
469   return PMPI_Cart_sub(comm, remain_dims, comm_new);
470 }
471
472 int MPI_Cartdim_get(MPI_Comm comm, int* ndims) {
473   return PMPI_Cartdim_get(comm, ndims);
474 }
475
476 int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int* index, int* edges, int reorder, MPI_Comm* comm_graph) {
477   return PMPI_Graph_create(comm_old, nnodes, index, edges, reorder, comm_graph);
478 }
479
480 int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int* index, int* edges) {
481   return PMPI_Graph_get(comm, maxindex, maxedges, index, edges);
482 }
483
484 int MPI_Graph_map(MPI_Comm comm_old, int nnodes, int* index, int* edges, int* newrank) {
485   return PMPI_Graph_map(comm_old, nnodes, index, edges, newrank);
486 }
487
488 int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int* neighbors) {
489   return PMPI_Graph_neighbors(comm, rank, maxneighbors, neighbors);
490 }
491
492 int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int* nneighbors) {
493   return PMPI_Graph_neighbors_count(comm, rank, nneighbors);
494 }
495
496 int MPI_Graphdims_get(MPI_Comm comm, int* nnodes, int* nedges) {
497   return PMPI_Graphdims_get(comm, nnodes, nedges);
498 }
499
500 int MPI_Topo_test(MPI_Comm comm, int* top_type) {
501   return PMPI_Topo_test(comm, top_type);
502 }
503
504 int MPI_Error_class(int errorcode, int* errorclass) {
505   return PMPI_Error_class(errorcode, errorclass);
506 }
507
508 int MPI_Errhandler_create(MPI_Handler_function* function, MPI_Errhandler* errhandler) {
509   return PMPI_Errhandler_create(function, errhandler);
510 }
511
512 int MPI_Errhandler_free(MPI_Errhandler* errhandler) {
513   return PMPI_Errhandler_free(errhandler);
514 }
515
516 int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler* errhandler) {
517   return PMPI_Errhandler_get(comm, errhandler);
518 }
519
520 int MPI_Error_string(int errorcode, char* string, int* resultlen) {
521   return PMPI_Error_string(errorcode, string, resultlen);
522 }
523
524 int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) {
525   return PMPI_Errhandler_set(comm, errhandler);
526 }
527
528 int MPI_Type_contiguous(int count, MPI_Datatype old_type, MPI_Datatype* newtype) {
529   return PMPI_Type_contiguous(count, old_type, newtype);
530 }
531
532 int MPI_Cancel(MPI_Request* request) {
533   return PMPI_Cancel(request);
534 }
535
536 int MPI_Buffer_attach(void* buffer, int size) {
537   return PMPI_Buffer_attach(buffer, size);
538 }
539
540 int MPI_Buffer_detach(void* buffer, int* size) {
541   return PMPI_Buffer_detach(buffer, size);
542 }
543
544 int MPI_Testsome(int incount, MPI_Request* requests, int* outcount, int* indices, MPI_Status* statuses) {
545   return PMPI_Testsome(incount, requests, outcount, indices, statuses);
546 }
547
548 int MPI_Comm_test_inter(MPI_Comm comm, int* flag) {
549   return PMPI_Comm_test_inter(comm, flag);
550 }
551
552 int MPI_Unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm) {
553   return PMPI_Unpack(inbuf, insize, position, outbuf, outcount, type, comm);
554 }
555
556 int MPI_Type_commit(MPI_Datatype* datatype) {
557   return PMPI_Type_commit(datatype);
558 }
559
560 int MPI_Type_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
561   return PMPI_Type_hindexed(count, blocklens, indices, old_type, newtype);
562 }
563
564 int MPI_Type_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
565   return PMPI_Type_hvector(count, blocklen, stride, old_type, newtype);
566 }
567
568 int MPI_Type_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
569   return PMPI_Type_indexed(count, blocklens, indices, old_type, newtype);
570 }
571
572 int MPI_Type_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* newtype) {
573   return PMPI_Type_struct(count, blocklens, indices, old_types, newtype);
574 }
575
576 int MPI_Type_vector(int count, int blocklen, int stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
577   return PMPI_Type_vector(count, blocklen, stride, old_type, newtype);
578 }
579
580 int MPI_Ssend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
581   return PMPI_Ssend(buf, count, datatype, dest, tag, comm);
582 }
583
584 int MPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
585   return PMPI_Ssend_init(buf, count, datatype, dest, tag, comm, request);
586 }
587
588 int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm* comm_out) {
589   return PMPI_Intercomm_create(local_comm, local_leader, peer_comm, remote_leader, tag, comm_out);
590 }
591
592 int MPI_Intercomm_merge(MPI_Comm comm, int high, MPI_Comm* comm_out) {
593   return PMPI_Intercomm_merge(comm, high, comm_out);
594 }
595
596 int MPI_Bsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
597   return PMPI_Bsend(buf, count, datatype, dest, tag, comm);
598 }
599
600 int MPI_Bsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
601   return PMPI_Bsend_init(buf, count, datatype, dest, tag, comm, request);
602 }
603
604 int MPI_Ibsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
605   return PMPI_Ibsend(buf, count, datatype, dest, tag, comm, request);
606 }
607
608 int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group* group) {
609   return PMPI_Comm_remote_group(comm, group);
610 }
611
612 int MPI_Comm_remote_size(MPI_Comm comm, int* size) {
613   return PMPI_Comm_remote_size(comm, size);
614 }
615
616 int MPI_Issend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
617   return PMPI_Issend(buf, count, datatype, dest, tag, comm, request);
618 }
619
620 int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) {
621   return PMPI_Probe(source, tag, comm, status);
622 }
623
624 int MPI_Attr_delete(MPI_Comm comm, int keyval) {
625   return PMPI_Attr_delete(comm, keyval);
626 }
627
628 int MPI_Attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag) {
629   return PMPI_Attr_get(comm, keyval, attr_value, flag);
630 }
631
632 int MPI_Attr_put(MPI_Comm comm, int keyval, void* attr_value) {
633   return PMPI_Attr_put(comm, keyval, attr_value);
634 }
635
636 int MPI_Rsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
637   return PMPI_Rsend(buf, count, datatype, dest, tag, comm);
638 }
639
640 int MPI_Rsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
641   return PMPI_Rsend_init(buf, count, datatype, dest, tag, comm, request);
642 }
643
644 int MPI_Irsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
645   return PMPI_Irsend(buf, count, datatype, dest, tag, comm, request);
646 }
647
648 int MPI_Keyval_create(MPI_Copy_function* copy_fn, MPI_Delete_function* delete_fn, int* keyval, void* extra_state) {
649   return PMPI_Keyval_create(copy_fn, delete_fn, keyval, extra_state);
650 }
651
652 int MPI_Keyval_free(int* keyval) {
653   return PMPI_Keyval_free(keyval);
654 }
655
656 int MPI_Test_cancelled(MPI_Status* status, int* flag) {
657   return PMPI_Test_cancelled(status, flag);
658 }
659
660 int MPI_Pack(void* inbuf, int incount, MPI_Datatype type, void* outbuf, int outcount, int* position, MPI_Comm comm) {
661   return PMPI_Pack(inbuf, incount, type, outbuf, outcount, position, comm);
662 }
663
664 int MPI_Testall(int count, MPI_Request* requests, int* flag, MPI_Status* statuses) {
665   return PMPI_Testall(count, requests, flag, statuses);
666 }
667
668 int MPI_Get_elements(MPI_Status* status, MPI_Datatype datatype, int* elements) {
669   return PMPI_Get_elements(status, datatype, elements);
670 }
671
672 int MPI_Dims_create(int nnodes, int ndims, int* dims) {
673   return PMPI_Dims_create(nnodes, ndims, dims);
674 }
675
676 int MPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* status) {
677   return PMPI_Iprobe(source, tag, comm, flag, status);
678 }
679
680 int MPI_Initialized(int* flag) {
681   return PMPI_Initialized(flag);
682 }