Logo AND Algorithmique Numérique Distribuée

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