Logo AND Algorithmique Numérique Distribuée

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