1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
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. */
8 #include "simgrid/sg_config.h"
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_mpi, smpi,
11 "Logging specific to SMPI (mpi)");
13 /* MPI User level calls */
15 int MPI_Init(int *argc, char ***argv)
17 int alltoall_id = find_coll_description(mpi_coll_alltoall_description,
18 sg_cfg_get_string("smpi/alltoall"));
19 mpi_coll_alltoall_fun = (int (*)(void *, int, MPI_Datatype,
20 void*, int, MPI_Datatype, MPI_Comm))
21 mpi_coll_alltoall_description[alltoall_id].coll;
23 int allgather_id = find_coll_description(mpi_coll_allgather_description,
24 sg_cfg_get_string("smpi/allgather"));
25 mpi_coll_allgather_fun = (int (*)(void *, int, MPI_Datatype,
26 void*, int, MPI_Datatype, MPI_Comm))
27 mpi_coll_allgather_description[allgather_id].coll;
29 return PMPI_Init(argc, argv);
32 int MPI_Finalize(void)
34 return PMPI_Finalize();
37 int MPI_Init_thread(int *argc, char ***argv, int required, int *provided)
39 return PMPI_Init_thread(argc, argv, required, provided);
42 int MPI_Query_thread(int *provided)
44 return PMPI_Query_thread(provided);
47 int MPI_Is_thread_main(int *flag)
49 return PMPI_Is_thread_main(flag);
52 int MPI_Abort(MPI_Comm comm, int errorcode)
54 return PMPI_Abort(comm, errorcode);
57 double MPI_Wtime(void)
62 double MPI_Wtick(void)
67 int MPI_Address(void *location, MPI_Aint * address)
69 return PMPI_Address(location, address);
72 int MPI_Type_free(MPI_Datatype * datatype)
74 return PMPI_Type_free(datatype);
77 int MPI_Pcontrol(const int level )
79 return PMPI_Pcontrol(level);
82 int MPI_Type_size(MPI_Datatype datatype, int *size)
84 return PMPI_Type_size(datatype, size);
87 int MPI_Type_get_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
89 return PMPI_Type_get_extent(datatype, lb, extent);
92 int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint * extent)
94 return PMPI_Type_extent(datatype, extent);
97 int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint * disp)
99 return PMPI_Type_lb(datatype, disp);
102 int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint * disp)
104 return PMPI_Type_ub(datatype, disp);
107 int MPI_Op_create(MPI_User_function * function, int commute, MPI_Op * op)
109 return PMPI_Op_create(function, commute, op);
112 int MPI_Op_free(MPI_Op * op)
114 return PMPI_Op_free(op);
117 int MPI_Group_free(MPI_Group * group)
119 return PMPI_Group_free(group);
122 int MPI_Group_size(MPI_Group group, int *size)
124 return PMPI_Group_size(group, size);
127 int MPI_Group_rank(MPI_Group group, int *rank)
129 return PMPI_Group_rank(group, rank);
132 int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1,
133 MPI_Group group2, int *ranks2)
135 return PMPI_Group_translate_ranks(group1, n, ranks1, group2, ranks2);
138 int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result)
140 return PMPI_Group_compare(group1, group2, result);
143 int MPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
145 return PMPI_Group_union(group1, group2, newgroup);
148 int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
150 return PMPI_Group_intersection(group1, group2, newgroup);
153 int MPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
155 return PMPI_Group_difference(group1, group2, newgroup);
158 int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
160 return PMPI_Group_incl(group, n, ranks, newgroup);
163 int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
165 return PMPI_Group_excl(group, n, ranks, newgroup);
168 int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
169 MPI_Group * newgroup)
171 return PMPI_Group_range_incl(group, n, ranges, newgroup);
174 int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],
175 MPI_Group * newgroup)
177 return PMPI_Group_range_excl(group, n, ranges, newgroup);
180 int MPI_Comm_rank(MPI_Comm comm, int *rank)
182 return PMPI_Comm_rank(comm, rank);
185 int MPI_Comm_size(MPI_Comm comm, int *size)
187 return PMPI_Comm_size(comm, size);
190 int MPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag)
192 return PMPI_Comm_get_attr (comm, comm_keyval, attribute_val, flag);
195 int MPI_Comm_get_name (MPI_Comm comm, char* name, int* len)
197 return PMPI_Comm_get_name(comm, name, len);
200 int MPI_Comm_group(MPI_Comm comm, MPI_Group * group)
202 return PMPI_Comm_group(comm, group);
205 int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result)
207 return PMPI_Comm_compare(comm1, comm2, result);
210 int MPI_Comm_dup(MPI_Comm comm, MPI_Comm * newcomm)
212 return PMPI_Comm_dup(comm, newcomm);
215 int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm * newcomm)
217 return PMPI_Comm_create(comm, group, newcomm);
220 int MPI_Comm_free(MPI_Comm * comm)
222 return PMPI_Comm_free(comm);
225 int MPI_Comm_disconnect(MPI_Comm * comm)
227 return PMPI_Comm_disconnect(comm);
230 int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm* comm_out)
232 return PMPI_Comm_split(comm, color, key, comm_out);
235 int MPI_Send_init(void *buf, int count, MPI_Datatype datatype, int dst,
236 int tag, MPI_Comm comm, MPI_Request * request)
238 return PMPI_Send_init(buf, count, datatype, dst, tag, comm, request);
241 int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int src,
242 int tag, MPI_Comm comm, MPI_Request * request)
244 return PMPI_Recv_init(buf, count, datatype, src, tag, comm, request);
247 int MPI_Start(MPI_Request * request)
249 return PMPI_Start(request);
252 int MPI_Startall(int count, MPI_Request * requests)
254 return PMPI_Startall(count, requests);
257 int MPI_Request_free(MPI_Request * request)
259 return PMPI_Request_free(request);
262 int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src,
263 int tag, MPI_Comm comm, MPI_Request * request)
265 return PMPI_Irecv(buf, count, datatype, src, tag, comm, request);
268 int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst,
269 int tag, MPI_Comm comm, MPI_Request * request)
271 return PMPI_Isend(buf, count, datatype, dst, tag, comm, request);
274 int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag,
275 MPI_Comm comm, MPI_Status * status)
277 return PMPI_Recv(buf, count, datatype, src, tag, comm, status);
280 int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag,
283 return PMPI_Send(buf, count, datatype, dst, tag, comm);
286 int MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
287 int dst, int sendtag, void *recvbuf, int recvcount,
288 MPI_Datatype recvtype, int src, int recvtag,
289 MPI_Comm comm, MPI_Status * status)
291 return PMPI_Sendrecv(sendbuf, sendcount, sendtype, dst, sendtag,
292 recvbuf, recvcount, recvtype, src, recvtag,
296 int MPI_Sendrecv_replace(void *buf, int count, MPI_Datatype datatype,
297 int dst, int sendtag, int src, int recvtag,
298 MPI_Comm comm, MPI_Status * status)
300 return PMPI_Sendrecv_replace(buf, count, datatype, dst, sendtag, src,
301 recvtag, comm, status);
304 int MPI_Test(MPI_Request * request, int *flag, MPI_Status * status)
306 return PMPI_Test(request, flag, status);
309 int MPI_Testany(int count, MPI_Request requests[], int *index, int *flag,
312 return PMPI_Testany(count, requests, index, flag, status);
315 int MPI_Wait(MPI_Request * request, MPI_Status * status)
317 return PMPI_Wait(request, status);
320 int MPI_Waitany(int count, MPI_Request requests[], int *index, MPI_Status * status)
322 return PMPI_Waitany(count, requests, index, status);
325 int MPI_Waitall(int count, MPI_Request requests[], MPI_Status status[])
327 return PMPI_Waitall(count, requests, status);
330 int MPI_Waitsome(int incount, MPI_Request requests[], int *outcount,
331 int *indices, MPI_Status status[])
333 return PMPI_Waitsome(incount, requests, outcount, indices, status);
336 int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm)
338 return PMPI_Bcast(buf, count, datatype, root, comm);
341 int MPI_Barrier(MPI_Comm comm)
343 return PMPI_Barrier(comm);
346 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
347 void *recvbuf, int recvcount, MPI_Datatype recvtype,
348 int root, MPI_Comm comm)
350 return PMPI_Gather(sendbuf, sendcount, sendtype,
351 recvbuf, recvcount, recvtype,
355 int MPI_Gatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
356 void *recvbuf, int *recvcounts, int *displs,
357 MPI_Datatype recvtype, int root, MPI_Comm comm)
359 return PMPI_Gatherv(sendbuf, sendcount, sendtype,
360 recvbuf, recvcounts, displs, recvtype,
364 int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
365 void *recvbuf, int recvcount, MPI_Datatype recvtype,
368 return PMPI_Allgather(sendbuf, sendcount, sendtype,
369 recvbuf, recvcount, recvtype,
373 int MPI_Allgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
374 void *recvbuf, int *recvcounts, int *displs,
375 MPI_Datatype recvtype, MPI_Comm comm)
377 return PMPI_Allgatherv(sendbuf, sendcount, sendtype,
378 recvbuf, recvcounts, displs, recvtype,
382 int MPI_Scatter(void *sendbuf, int sendcount, MPI_Datatype sendtype,
383 void *recvbuf, int recvcount, MPI_Datatype recvtype,
384 int root, MPI_Comm comm)
386 return PMPI_Scatter(sendbuf, sendcount, sendtype,
387 recvbuf, recvcount, recvtype,
391 int MPI_Scatterv(void *sendbuf, int *sendcounts, int *displs,
392 MPI_Datatype sendtype, void *recvbuf, int recvcount,
393 MPI_Datatype recvtype, int root, MPI_Comm comm)
395 return PMPI_Scatterv(sendbuf, sendcounts, displs, sendtype,
396 recvbuf, recvcount, recvtype,
400 int MPI_Reduce(void *sendbuf, void *recvbuf, int count,
401 MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm)
403 return PMPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm);
406 int MPI_Allreduce(void *sendbuf, void *recvbuf, int count,
407 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
409 return PMPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm);
412 int MPI_Scan(void *sendbuf, void *recvbuf, int count,
413 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
415 return PMPI_Scan(sendbuf, recvbuf, count, datatype, op, comm);
418 int MPI_Reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts,
419 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
421 return PMPI_Reduce_scatter(sendbuf, recvbuf, recvcounts, datatype, op, comm);
424 int MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype sendtype,
425 void *recvbuf, int recvcount, MPI_Datatype recvtype,
428 return PMPI_Alltoall(sendbuf, sendcount, sendtype,
429 recvbuf, recvcount, recvtype,
433 int MPI_Alltoallv(void *sendbuf, int *sendcounts, int *senddisps,
434 MPI_Datatype sendtype, void *recvbuf, int *recvcounts,
435 int *recvdisps, MPI_Datatype recvtype, MPI_Comm comm)
437 return PMPI_Alltoallv(sendbuf, sendcounts, senddisps, sendtype,
438 recvbuf, recvcounts, recvdisps, recvtype,
443 int MPI_Get_processor_name(char *name, int *resultlen)
445 return PMPI_Get_processor_name(name, resultlen);
448 int MPI_Get_count(MPI_Status * status, MPI_Datatype datatype, int *count)
450 return PMPI_Get_count(status, datatype, count);
453 int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm, int* size) {
454 return PMPI_Pack_size(incount, datatype, comm, size);
457 int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int* coords) {
458 return PMPI_Cart_coords(comm, rank, maxdims, coords);
461 int MPI_Cart_create(MPI_Comm comm_old, int ndims, int* dims, int* periods, int reorder, MPI_Comm* comm_cart) {
462 return PMPI_Cart_create(comm_old, ndims, dims, periods, reorder, comm_cart);
465 int MPI_Cart_get(MPI_Comm comm, int maxdims, int* dims, int* periods, int* coords) {
466 return PMPI_Cart_get(comm, maxdims, dims, periods, coords);
469 int MPI_Cart_map(MPI_Comm comm_old, int ndims, int* dims, int* periods, int* newrank) {
470 return PMPI_Cart_map(comm_old, ndims, dims, periods, newrank);
473 int MPI_Cart_rank(MPI_Comm comm, int* coords, int* rank) {
474 return PMPI_Cart_rank(comm, coords, rank);
477 int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int* source, int* dest) {
478 return PMPI_Cart_shift(comm, direction, displ, source, dest);
481 int MPI_Cart_sub(MPI_Comm comm, int* remain_dims, MPI_Comm* comm_new) {
482 return PMPI_Cart_sub(comm, remain_dims, comm_new);
485 int MPI_Cartdim_get(MPI_Comm comm, int* ndims) {
486 return PMPI_Cartdim_get(comm, ndims);
489 int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int* index, int* edges, int reorder, MPI_Comm* comm_graph) {
490 return PMPI_Graph_create(comm_old, nnodes, index, edges, reorder, comm_graph);
493 int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int* index, int* edges) {
494 return PMPI_Graph_get(comm, maxindex, maxedges, index, edges);
497 int MPI_Graph_map(MPI_Comm comm_old, int nnodes, int* index, int* edges, int* newrank) {
498 return PMPI_Graph_map(comm_old, nnodes, index, edges, newrank);
501 int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int* neighbors) {
502 return PMPI_Graph_neighbors(comm, rank, maxneighbors, neighbors);
505 int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int* nneighbors) {
506 return PMPI_Graph_neighbors_count(comm, rank, nneighbors);
509 int MPI_Graphdims_get(MPI_Comm comm, int* nnodes, int* nedges) {
510 return PMPI_Graphdims_get(comm, nnodes, nedges);
513 int MPI_Topo_test(MPI_Comm comm, int* top_type) {
514 return PMPI_Topo_test(comm, top_type);
517 int MPI_Error_class(int errorcode, int* errorclass) {
518 return PMPI_Error_class(errorcode, errorclass);
521 int MPI_Errhandler_create(MPI_Handler_function* function, MPI_Errhandler* errhandler) {
522 return PMPI_Errhandler_create(function, errhandler);
525 int MPI_Errhandler_free(MPI_Errhandler* errhandler) {
526 return PMPI_Errhandler_free(errhandler);
529 int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler* errhandler) {
530 return PMPI_Errhandler_get(comm, errhandler);
533 int MPI_Error_string(int errorcode, char* string, int* resultlen) {
534 return PMPI_Error_string(errorcode, string, resultlen);
537 int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) {
538 return PMPI_Errhandler_set(comm, errhandler);
541 int MPI_Type_contiguous(int count, MPI_Datatype old_type, MPI_Datatype* newtype) {
542 return PMPI_Type_contiguous(count, old_type, newtype);
545 int MPI_Cancel(MPI_Request* request) {
546 return PMPI_Cancel(request);
549 int MPI_Buffer_attach(void* buffer, int size) {
550 return PMPI_Buffer_attach(buffer, size);
553 int MPI_Buffer_detach(void* buffer, int* size) {
554 return PMPI_Buffer_detach(buffer, size);
557 int MPI_Testsome(int incount, MPI_Request* requests, int* outcount, int* indices, MPI_Status* statuses) {
558 return PMPI_Testsome(incount, requests, outcount, indices, statuses);
561 int MPI_Comm_test_inter(MPI_Comm comm, int* flag) {
562 return PMPI_Comm_test_inter(comm, flag);
565 int MPI_Unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm) {
566 return PMPI_Unpack(inbuf, insize, position, outbuf, outcount, type, comm);
569 int MPI_Type_commit(MPI_Datatype* datatype) {
570 return PMPI_Type_commit(datatype);
573 int MPI_Type_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
574 return PMPI_Type_hindexed(count, blocklens, indices, old_type, newtype);
577 int MPI_Type_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
578 return PMPI_Type_hvector(count, blocklen, stride, old_type, newtype);
581 int MPI_Type_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
582 return PMPI_Type_indexed(count, blocklens, indices, old_type, newtype);
585 int MPI_Type_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* newtype) {
586 return PMPI_Type_struct(count, blocklens, indices, old_types, newtype);
589 int MPI_Type_vector(int count, int blocklen, int stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
590 return PMPI_Type_vector(count, blocklen, stride, old_type, newtype);
593 int MPI_Ssend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
594 return PMPI_Ssend(buf, count, datatype, dest, tag, comm);
597 int MPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
598 return PMPI_Ssend_init(buf, count, datatype, dest, tag, comm, request);
601 int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm* comm_out) {
602 return PMPI_Intercomm_create(local_comm, local_leader, peer_comm, remote_leader, tag, comm_out);
605 int MPI_Intercomm_merge(MPI_Comm comm, int high, MPI_Comm* comm_out) {
606 return PMPI_Intercomm_merge(comm, high, comm_out);
609 int MPI_Bsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
610 return PMPI_Bsend(buf, count, datatype, dest, tag, comm);
613 int MPI_Bsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
614 return PMPI_Bsend_init(buf, count, datatype, dest, tag, comm, request);
617 int MPI_Ibsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
618 return PMPI_Ibsend(buf, count, datatype, dest, tag, comm, request);
621 int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group* group) {
622 return PMPI_Comm_remote_group(comm, group);
625 int MPI_Comm_remote_size(MPI_Comm comm, int* size) {
626 return PMPI_Comm_remote_size(comm, size);
629 int MPI_Issend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
630 return PMPI_Issend(buf, count, datatype, dest, tag, comm, request);
633 int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) {
634 return PMPI_Probe(source, tag, comm, status);
637 int MPI_Attr_delete(MPI_Comm comm, int keyval) {
638 return PMPI_Attr_delete(comm, keyval);
641 int MPI_Attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag) {
642 return PMPI_Attr_get(comm, keyval, attr_value, flag);
645 int MPI_Attr_put(MPI_Comm comm, int keyval, void* attr_value) {
646 return PMPI_Attr_put(comm, keyval, attr_value);
649 int MPI_Rsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
650 return PMPI_Rsend(buf, count, datatype, dest, tag, comm);
653 int MPI_Rsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
654 return PMPI_Rsend_init(buf, count, datatype, dest, tag, comm, request);
657 int MPI_Irsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
658 return PMPI_Irsend(buf, count, datatype, dest, tag, comm, request);
661 int MPI_Keyval_create(MPI_Copy_function* copy_fn, MPI_Delete_function* delete_fn, int* keyval, void* extra_state) {
662 return PMPI_Keyval_create(copy_fn, delete_fn, keyval, extra_state);
665 int MPI_Keyval_free(int* keyval) {
666 return PMPI_Keyval_free(keyval);
669 int MPI_Test_cancelled(MPI_Status* status, int* flag) {
670 return PMPI_Test_cancelled(status, flag);
673 int MPI_Pack(void* inbuf, int incount, MPI_Datatype type, void* outbuf, int outcount, int* position, MPI_Comm comm) {
674 return PMPI_Pack(inbuf, incount, type, outbuf, outcount, position, comm);
677 int MPI_Testall(int count, MPI_Request* requests, int* flag, MPI_Status* statuses) {
678 return PMPI_Testall(count, requests, flag, statuses);
681 int MPI_Get_elements(MPI_Status* status, MPI_Datatype datatype, int* elements) {
682 return PMPI_Get_elements(status, datatype, elements);
685 int MPI_Dims_create(int nnodes, int ndims, int* dims) {
686 return PMPI_Dims_create(nnodes, ndims, dims);
689 int MPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* status) {
690 return PMPI_Iprobe(source, tag, comm, flag, status);
693 int MPI_Initialized(int* flag) {
694 return PMPI_Initialized(flag);