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)
18 return PMPI_Init(argc, argv);
21 int MPI_Finalize(void)
23 return PMPI_Finalize();
26 int MPI_Finalized(int * flag)
28 return PMPI_Finalized(flag);
31 int MPI_Init_thread(int *argc, char ***argv, int required, int *provided)
33 return PMPI_Init_thread(argc, argv, required, provided);
36 int MPI_Query_thread(int *provided)
38 return PMPI_Query_thread(provided);
41 int MPI_Is_thread_main(int *flag)
43 return PMPI_Is_thread_main(flag);
46 int MPI_Abort(MPI_Comm comm, int errorcode)
48 return PMPI_Abort(comm, errorcode);
51 double MPI_Wtime(void)
56 double MPI_Wtick(void)
61 int MPI_Address(void *location, MPI_Aint * address)
63 return PMPI_Address(location, address);
66 int MPI_Get_address(void *location, MPI_Aint * address)
68 return PMPI_Get_address(location, address);
71 int MPI_Type_free(MPI_Datatype * datatype)
73 return PMPI_Type_free(datatype);
76 int MPI_Type_dup(MPI_Datatype datatype, MPI_Datatype * newdatatype)
78 return PMPI_Type_dup(datatype, newdatatype);
81 int MPI_Type_set_name(MPI_Datatype datatype, char * name)
83 return PMPI_Type_set_name(datatype, name);
86 int MPI_Type_get_name(MPI_Datatype datatype, char * name, int* len)
88 return PMPI_Type_get_name(datatype,name,len);
91 int MPI_Type_get_attr (MPI_Datatype type, int type_keyval, void *attribute_val, int* flag)
93 return PMPI_Type_get_attr ( type, type_keyval, attribute_val, flag);
96 int MPI_Type_set_attr (MPI_Datatype type, int type_keyval, void *attribute_val)
98 return PMPI_Type_set_attr ( type, type_keyval, attribute_val);
101 int MPI_Type_delete_attr (MPI_Datatype type, int type_keyval)
103 return PMPI_Type_delete_attr (type, type_keyval);
106 int MPI_Type_create_keyval(MPI_Type_copy_attr_function* copy_fn, MPI_Type_delete_attr_function* delete_fn, int* keyval, void* extra_state)
108 return PMPI_Type_create_keyval(copy_fn, delete_fn, keyval, extra_state) ;
111 int MPI_Type_free_keyval(int* keyval) {
112 return PMPI_Type_free_keyval( keyval);
115 int MPI_Pcontrol(const int level )
117 return PMPI_Pcontrol(level);
120 int MPI_Type_size(MPI_Datatype datatype, int *size)
122 return PMPI_Type_size(datatype, size);
125 int MPI_Type_get_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
127 return PMPI_Type_get_extent(datatype, lb, extent);
130 int MPI_Type_get_true_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
132 return PMPI_Type_get_true_extent(datatype, lb, extent);
135 int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint * extent)
137 return PMPI_Type_extent(datatype, extent);
140 int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint * disp)
142 return PMPI_Type_lb(datatype, disp);
145 int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint * disp)
147 return PMPI_Type_ub(datatype, disp);
150 int MPI_Op_create(MPI_User_function * function, int commute, MPI_Op * op)
152 return PMPI_Op_create(function, commute, op);
155 int MPI_Op_free(MPI_Op * op)
157 return PMPI_Op_free(op);
160 int MPI_Group_free(MPI_Group * group)
162 return PMPI_Group_free(group);
165 int MPI_Group_size(MPI_Group group, int *size)
167 return PMPI_Group_size(group, size);
170 int MPI_Group_rank(MPI_Group group, int *rank)
172 return PMPI_Group_rank(group, rank);
175 int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1,
176 MPI_Group group2, int *ranks2)
178 return PMPI_Group_translate_ranks(group1, n, ranks1, group2, ranks2);
181 int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result)
183 return PMPI_Group_compare(group1, group2, result);
186 int MPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
188 return PMPI_Group_union(group1, group2, newgroup);
191 int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
193 return PMPI_Group_intersection(group1, group2, newgroup);
196 int MPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
198 return PMPI_Group_difference(group1, group2, newgroup);
201 int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
203 return PMPI_Group_incl(group, n, ranks, newgroup);
206 int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
208 return PMPI_Group_excl(group, n, ranks, newgroup);
211 int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
212 MPI_Group * newgroup)
214 return PMPI_Group_range_incl(group, n, ranges, newgroup);
217 int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],
218 MPI_Group * newgroup)
220 return PMPI_Group_range_excl(group, n, ranges, newgroup);
223 int MPI_Comm_rank(MPI_Comm comm, int *rank)
225 return PMPI_Comm_rank(comm, rank);
228 int MPI_Comm_size(MPI_Comm comm, int *size)
230 return PMPI_Comm_size(comm, size);
233 int MPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag)
235 return PMPI_Comm_get_attr (comm, comm_keyval, attribute_val, flag);
238 int MPI_Comm_set_attr (MPI_Comm comm, int comm_keyval, void *attribute_val)
240 return PMPI_Comm_set_attr ( comm, comm_keyval, attribute_val);
243 int MPI_Comm_delete_attr (MPI_Comm comm, int comm_keyval)
245 return PMPI_Comm_delete_attr (comm, comm_keyval);
248 int MPI_Comm_create_keyval(MPI_Comm_copy_attr_function* copy_fn, MPI_Comm_delete_attr_function* delete_fn, int* keyval, void* extra_state)
250 return PMPI_Comm_create_keyval(copy_fn, delete_fn, keyval, extra_state) ;
253 int MPI_Comm_free_keyval(int* keyval) {
254 return PMPI_Comm_free_keyval( keyval);
257 int MPI_Comm_get_name (MPI_Comm comm, char* name, int* len)
259 return PMPI_Comm_get_name(comm, name, len);
262 int MPI_Comm_group(MPI_Comm comm, MPI_Group * group)
264 return PMPI_Comm_group(comm, group);
267 int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result)
269 return PMPI_Comm_compare(comm1, comm2, result);
272 int MPI_Comm_dup(MPI_Comm comm, MPI_Comm * newcomm)
274 return PMPI_Comm_dup(comm, newcomm);
277 int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm * newcomm)
279 return PMPI_Comm_create(comm, group, newcomm);
282 int MPI_Comm_free(MPI_Comm * comm)
284 return PMPI_Comm_free(comm);
287 int MPI_Comm_disconnect(MPI_Comm * comm)
289 return PMPI_Comm_disconnect(comm);
292 int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm* comm_out)
294 return PMPI_Comm_split(comm, color, key, comm_out);
297 int MPI_Send_init(void *buf, int count, MPI_Datatype datatype, int dst,
298 int tag, MPI_Comm comm, MPI_Request * request)
300 return PMPI_Send_init(buf, count, datatype, dst, tag, comm, request);
303 int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int src,
304 int tag, MPI_Comm comm, MPI_Request * request)
306 return PMPI_Recv_init(buf, count, datatype, src, tag, comm, request);
309 int MPI_Start(MPI_Request * request)
311 return PMPI_Start(request);
314 int MPI_Startall(int count, MPI_Request * requests)
316 return PMPI_Startall(count, requests);
319 int MPI_Request_free(MPI_Request * request)
321 return PMPI_Request_free(request);
324 int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src,
325 int tag, MPI_Comm comm, MPI_Request * request)
327 return PMPI_Irecv(buf, count, datatype, src, tag, comm, request);
330 int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst,
331 int tag, MPI_Comm comm, MPI_Request * request)
333 return PMPI_Isend(buf, count, datatype, dst, tag, comm, request);
336 int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag,
337 MPI_Comm comm, MPI_Status * status)
339 return PMPI_Recv(buf, count, datatype, src, tag, comm, status);
342 int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag,
345 return PMPI_Send(buf, count, datatype, dst, tag, comm);
348 int MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
349 int dst, int sendtag, void *recvbuf, int recvcount,
350 MPI_Datatype recvtype, int src, int recvtag,
351 MPI_Comm comm, MPI_Status * status)
353 return PMPI_Sendrecv(sendbuf, sendcount, sendtype, dst, sendtag,
354 recvbuf, recvcount, recvtype, src, recvtag,
358 int MPI_Sendrecv_replace(void *buf, int count, MPI_Datatype datatype,
359 int dst, int sendtag, int src, int recvtag,
360 MPI_Comm comm, MPI_Status * status)
362 return PMPI_Sendrecv_replace(buf, count, datatype, dst, sendtag, src,
363 recvtag, comm, status);
366 int MPI_Test(MPI_Request * request, int *flag, MPI_Status * status)
368 return PMPI_Test(request, flag, status);
371 int MPI_Testany(int count, MPI_Request requests[], int *index, int *flag,
374 return PMPI_Testany(count, requests, index, flag, status);
377 int MPI_Wait(MPI_Request * request, MPI_Status * status)
379 return PMPI_Wait(request, status);
382 int MPI_Waitany(int count, MPI_Request requests[], int *index, MPI_Status * status)
384 return PMPI_Waitany(count, requests, index, status);
387 int MPI_Waitall(int count, MPI_Request requests[], MPI_Status status[])
389 return PMPI_Waitall(count, requests, status);
392 int MPI_Waitsome(int incount, MPI_Request requests[], int *outcount,
393 int *indices, MPI_Status status[])
395 return PMPI_Waitsome(incount, requests, outcount, indices, status);
398 int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm)
400 return PMPI_Bcast(buf, count, datatype, root, comm);
403 int MPI_Barrier(MPI_Comm comm)
405 return PMPI_Barrier(comm);
408 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
409 void *recvbuf, int recvcount, MPI_Datatype recvtype,
410 int root, MPI_Comm comm)
412 return PMPI_Gather(sendbuf, sendcount, sendtype,
413 recvbuf, recvcount, recvtype,
417 int MPI_Gatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
418 void *recvbuf, int *recvcounts, int *displs,
419 MPI_Datatype recvtype, int root, MPI_Comm comm)
421 return PMPI_Gatherv(sendbuf, sendcount, sendtype,
422 recvbuf, recvcounts, displs, recvtype,
426 int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
427 void *recvbuf, int recvcount, MPI_Datatype recvtype,
430 return PMPI_Allgather(sendbuf, sendcount, sendtype,
431 recvbuf, recvcount, recvtype,
435 int MPI_Allgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
436 void *recvbuf, int *recvcounts, int *displs,
437 MPI_Datatype recvtype, MPI_Comm comm)
439 return PMPI_Allgatherv(sendbuf, sendcount, sendtype,
440 recvbuf, recvcounts, displs, recvtype,
444 int MPI_Scatter(void *sendbuf, int sendcount, MPI_Datatype sendtype,
445 void *recvbuf, int recvcount, MPI_Datatype recvtype,
446 int root, MPI_Comm comm)
448 return PMPI_Scatter(sendbuf, sendcount, sendtype,
449 recvbuf, recvcount, recvtype,
453 int MPI_Scatterv(void *sendbuf, int *sendcounts, int *displs,
454 MPI_Datatype sendtype, void *recvbuf, int recvcount,
455 MPI_Datatype recvtype, int root, MPI_Comm comm)
457 return PMPI_Scatterv(sendbuf, sendcounts, displs, sendtype,
458 recvbuf, recvcount, recvtype,
462 int MPI_Reduce(void *sendbuf, void *recvbuf, int count,
463 MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm)
465 return PMPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm);
468 int MPI_Reduce_local(void *inbuf, void *inoutbuf, int count,
469 MPI_Datatype datatype, MPI_Op op){
470 return PMPI_Reduce_local(inbuf, inoutbuf, count, datatype, op);
473 int MPI_Allreduce(void *sendbuf, void *recvbuf, int count,
474 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
476 return PMPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm);
479 int MPI_Scan(void *sendbuf, void *recvbuf, int count,
480 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
482 return PMPI_Scan(sendbuf, recvbuf, count, datatype, op, comm);
485 int MPI_Reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts,
486 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
488 return PMPI_Reduce_scatter(sendbuf, recvbuf, recvcounts, datatype, op, comm);
491 int MPI_Reduce_scatter_block(void *sendbuf, void *recvbuf, int recvcount,
492 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
494 return PMPI_Reduce_scatter_block(sendbuf, recvbuf, recvcount, datatype, op, comm);
497 int MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype sendtype,
498 void *recvbuf, int recvcount, MPI_Datatype recvtype,
501 return PMPI_Alltoall(sendbuf, sendcount, sendtype,
502 recvbuf, recvcount, recvtype,
506 int MPI_Alltoallv(void *sendbuf, int *sendcounts, int *senddisps,
507 MPI_Datatype sendtype, void *recvbuf, int *recvcounts,
508 int *recvdisps, MPI_Datatype recvtype, MPI_Comm comm)
510 return PMPI_Alltoallv(sendbuf, sendcounts, senddisps, sendtype,
511 recvbuf, recvcounts, recvdisps, recvtype,
516 int MPI_Get_processor_name(char *name, int *resultlen)
518 return PMPI_Get_processor_name(name, resultlen);
521 int MPI_Get_count(MPI_Status * status, MPI_Datatype datatype, int *count)
523 return PMPI_Get_count(status, datatype, count);
526 int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm, int* size) {
527 return PMPI_Pack_size(incount, datatype, comm, size);
530 int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int* coords) {
531 return PMPI_Cart_coords(comm, rank, maxdims, coords);
534 int MPI_Cart_create(MPI_Comm comm_old, int ndims, int* dims, int* periods, int reorder, MPI_Comm* comm_cart) {
535 return PMPI_Cart_create(comm_old, ndims, dims, periods, reorder, comm_cart);
538 int MPI_Cart_get(MPI_Comm comm, int maxdims, int* dims, int* periods, int* coords) {
539 return PMPI_Cart_get(comm, maxdims, dims, periods, coords);
542 int MPI_Cart_map(MPI_Comm comm_old, int ndims, int* dims, int* periods, int* newrank) {
543 return PMPI_Cart_map(comm_old, ndims, dims, periods, newrank);
546 int MPI_Cart_rank(MPI_Comm comm, int* coords, int* rank) {
547 return PMPI_Cart_rank(comm, coords, rank);
550 int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int* source, int* dest) {
551 return PMPI_Cart_shift(comm, direction, displ, source, dest);
554 int MPI_Cart_sub(MPI_Comm comm, int* remain_dims, MPI_Comm* comm_new) {
555 return PMPI_Cart_sub(comm, remain_dims, comm_new);
558 int MPI_Cartdim_get(MPI_Comm comm, int* ndims) {
559 return PMPI_Cartdim_get(comm, ndims);
562 int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int* index, int* edges, int reorder, MPI_Comm* comm_graph) {
563 return PMPI_Graph_create(comm_old, nnodes, index, edges, reorder, comm_graph);
566 int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int* index, int* edges) {
567 return PMPI_Graph_get(comm, maxindex, maxedges, index, edges);
570 int MPI_Graph_map(MPI_Comm comm_old, int nnodes, int* index, int* edges, int* newrank) {
571 return PMPI_Graph_map(comm_old, nnodes, index, edges, newrank);
574 int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int* neighbors) {
575 return PMPI_Graph_neighbors(comm, rank, maxneighbors, neighbors);
578 int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int* nneighbors) {
579 return PMPI_Graph_neighbors_count(comm, rank, nneighbors);
582 int MPI_Graphdims_get(MPI_Comm comm, int* nnodes, int* nedges) {
583 return PMPI_Graphdims_get(comm, nnodes, nedges);
586 int MPI_Topo_test(MPI_Comm comm, int* top_type) {
587 return PMPI_Topo_test(comm, top_type);
590 int MPI_Error_class(int errorcode, int* errorclass) {
591 return PMPI_Error_class(errorcode, errorclass);
594 int MPI_Errhandler_create(MPI_Handler_function* function, MPI_Errhandler* errhandler) {
595 return PMPI_Errhandler_create(function, errhandler);
598 int MPI_Errhandler_free(MPI_Errhandler* errhandler) {
599 return PMPI_Errhandler_free(errhandler);
602 int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler* errhandler) {
603 return PMPI_Errhandler_get(comm, errhandler);
606 int MPI_Error_string(int errorcode, char* string, int* resultlen) {
607 return PMPI_Error_string(errorcode, string, resultlen);
610 int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) {
611 return PMPI_Errhandler_set(comm, errhandler);
614 int MPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler) {
615 return PMPI_Errhandler_set(comm, errhandler);
618 int MPI_Type_contiguous(int count, MPI_Datatype old_type, MPI_Datatype* newtype) {
619 return PMPI_Type_contiguous(count, old_type, newtype);
622 int MPI_Cancel(MPI_Request* request) {
623 return PMPI_Cancel(request);
626 int MPI_Buffer_attach(void* buffer, int size) {
627 return PMPI_Buffer_attach(buffer, size);
630 int MPI_Buffer_detach(void* buffer, int* size) {
631 return PMPI_Buffer_detach(buffer, size);
634 int MPI_Testsome(int incount, MPI_Request* requests, int* outcount, int* indices, MPI_Status* statuses) {
635 return PMPI_Testsome(incount, requests, outcount, indices, statuses);
638 int MPI_Comm_test_inter(MPI_Comm comm, int* flag) {
639 return PMPI_Comm_test_inter(comm, flag);
642 int MPI_Unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm) {
643 return PMPI_Unpack(inbuf, insize, position, outbuf, outcount, type, comm);
646 int MPI_Pack_external_size(char *datarep, int incount, MPI_Datatype datatype, MPI_Aint *size){
647 return PMPI_Pack_external_size(datarep, incount, datatype, size);
650 int MPI_Pack_external(char *datarep, void *inbuf, int incount, MPI_Datatype datatype, void *outbuf, MPI_Aint outcount, MPI_Aint *position){
651 return PMPI_Pack_external(datarep, inbuf, incount, datatype, outbuf, outcount, position);
654 int MPI_Unpack_external( char *datarep, void *inbuf, MPI_Aint insize, MPI_Aint *position, void *outbuf, int outcount, MPI_Datatype datatype){
655 return PMPI_Unpack_external( datarep, inbuf, insize, position, outbuf, outcount, datatype);
658 int MPI_Type_commit(MPI_Datatype* datatype) {
659 return PMPI_Type_commit(datatype);
662 int MPI_Type_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
663 return PMPI_Type_hindexed(count, blocklens, indices, old_type, newtype);
666 int MPI_Type_create_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* new_type) {
667 return PMPI_Type_create_hindexed(count, blocklens,indices,old_type,new_type);
670 int MPI_Type_create_hindexed_block(int count, int blocklength, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
671 return PMPI_Type_create_hindexed_block(count, blocklength, indices, old_type, newtype);
674 int MPI_Type_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
675 return PMPI_Type_hvector(count, blocklen, stride, old_type, newtype);
678 int MPI_Type_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
679 return PMPI_Type_indexed(count, blocklens, indices, old_type, newtype);
682 int MPI_Type_create_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
683 return PMPI_Type_create_indexed(count, blocklens, indices, old_type, newtype);
686 int MPI_Type_create_indexed_block(int count, int blocklength, int* indices, MPI_Datatype old_type, MPI_Datatype *newtype){
687 return PMPI_Type_create_indexed_block(count, blocklength, indices, old_type, newtype);
690 int MPI_Type_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* newtype) {
691 return PMPI_Type_struct(count, blocklens, indices, old_types, newtype);
694 int MPI_Type_create_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* newtype) {
695 return PMPI_Type_create_struct(count, blocklens, indices, old_types, newtype);
698 int MPI_Type_vector(int count, int blocklen, int stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
699 return PMPI_Type_vector(count, blocklen, stride, old_type, newtype);
702 int MPI_Ssend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
703 return PMPI_Ssend(buf, count, datatype, dest, tag, comm);
706 int MPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
707 return PMPI_Ssend_init(buf, count, datatype, dest, tag, comm, request);
710 int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag, MPI_Comm* comm_out) {
711 return PMPI_Intercomm_create(local_comm, local_leader, peer_comm, remote_leader, tag, comm_out);
714 int MPI_Intercomm_merge(MPI_Comm comm, int high, MPI_Comm* comm_out) {
715 return PMPI_Intercomm_merge(comm, high, comm_out);
718 int MPI_Bsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
719 return PMPI_Bsend(buf, count, datatype, dest, tag, comm);
722 int MPI_Bsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
723 return PMPI_Bsend_init(buf, count, datatype, dest, tag, comm, request);
726 int MPI_Ibsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
727 return PMPI_Ibsend(buf, count, datatype, dest, tag, comm, request);
730 int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group* group) {
731 return PMPI_Comm_remote_group(comm, group);
734 int MPI_Comm_remote_size(MPI_Comm comm, int* size) {
735 return PMPI_Comm_remote_size(comm, size);
738 int MPI_Issend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
739 return PMPI_Issend(buf, count, datatype, dest, tag, comm, request);
742 int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) {
743 return PMPI_Probe(source, tag, comm, status);
746 int MPI_Attr_delete(MPI_Comm comm, int keyval) {
747 return PMPI_Attr_delete(comm, keyval);
750 int MPI_Attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag) {
751 return PMPI_Attr_get(comm, keyval, attr_value, flag);
754 int MPI_Attr_put(MPI_Comm comm, int keyval, void* attr_value) {
755 return PMPI_Attr_put(comm, keyval, attr_value);
758 int MPI_Rsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
759 return PMPI_Rsend(buf, count, datatype, dest, tag, comm);
762 int MPI_Rsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
763 return PMPI_Rsend_init(buf, count, datatype, dest, tag, comm, request);
766 int MPI_Irsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
767 return PMPI_Irsend(buf, count, datatype, dest, tag, comm, request);
770 int MPI_Keyval_create(MPI_Copy_function* copy_fn, MPI_Delete_function* delete_fn, int* keyval, void* extra_state) {
771 return PMPI_Keyval_create(copy_fn, delete_fn, keyval, extra_state);
774 int MPI_Keyval_free(int* keyval) {
775 return PMPI_Keyval_free(keyval);
778 int MPI_Test_cancelled(MPI_Status* status, int* flag) {
779 return PMPI_Test_cancelled(status, flag);
782 int MPI_Pack(void* inbuf, int incount, MPI_Datatype type, void* outbuf, int outcount, int* position, MPI_Comm comm) {
783 return PMPI_Pack(inbuf, incount, type, outbuf, outcount, position, comm);
786 int MPI_Testall(int count, MPI_Request* requests, int* flag, MPI_Status* statuses) {
787 return PMPI_Testall(count, requests, flag, statuses);
790 int MPI_Get_elements(MPI_Status* status, MPI_Datatype datatype, int* elements) {
791 return PMPI_Get_elements(status, datatype, elements);
794 int MPI_Dims_create(int nnodes, int ndims, int* dims) {
795 return PMPI_Dims_create(nnodes, ndims, dims);
798 int MPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* status) {
799 return PMPI_Iprobe(source, tag, comm, flag, status);
802 int MPI_Initialized(int* flag) {
803 return PMPI_Initialized(flag);
806 int MPI_Win_fence( int assert, MPI_Win win){
807 return PMPI_Win_fence( assert, win);
810 int MPI_Win_free( MPI_Win* win){
811 return PMPI_Win_free( win);
814 int MPI_Win_create( void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm, MPI_Win *win){
815 return PMPI_Win_create( base, size, disp_unit, info, comm,win);
818 int MPI_Info_create( MPI_Info *info){
819 return PMPI_Info_create( info);
822 int MPI_Info_set( MPI_Info info, char *key, char *value){
823 return PMPI_Info_set( info, key, value);
826 int MPI_Info_free( MPI_Info *info){
827 return PMPI_Info_free( info);
830 int MPI_Get( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
831 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Win win){
832 return PMPI_Get( origin_addr,origin_count, origin_datatype,target_rank,
833 target_disp, target_count,target_datatype, win);
836 int MPI_Type_get_envelope( MPI_Datatype datatype, int *num_integers,
837 int *num_addresses, int *num_datatypes, int *combiner){
838 return PMPI_Type_get_envelope( datatype, num_integers,
839 num_addresses, num_datatypes, combiner);
842 int MPI_Type_get_contents(MPI_Datatype datatype, int max_integers, int max_addresses,
843 int max_datatypes, int* array_of_integers, MPI_Aint* array_of_addresses,
844 MPI_Datatype *array_of_datatypes){
845 return PMPI_Type_get_contents(datatype, max_integers, max_addresses,
846 max_datatypes, array_of_integers, array_of_addresses,
850 int MPI_Type_create_darray(int size, int rank, int ndims, int* array_of_gsizes,
851 int* array_of_distribs, int* array_of_dargs, int* array_of_psizes,
852 int order, MPI_Datatype oldtype, MPI_Datatype *newtype) {
853 return PMPI_Type_create_darray(size, rank, ndims, array_of_gsizes,
854 array_of_distribs, array_of_dargs, array_of_psizes,
855 order, oldtype, newtype) ;
858 int MPI_Type_create_resized(MPI_Datatype oldtype,MPI_Aint lb, MPI_Aint extent, MPI_Datatype *newtype){
859 return PMPI_Type_create_resized(oldtype,lb, extent, newtype);
862 int MPI_Type_create_subarray(int ndims,int *array_of_sizes, int *array_of_subsizes, int *array_of_starts, int order, MPI_Datatype oldtype, MPI_Datatype *newtype){
863 return PMPI_Type_create_subarray(ndims,array_of_sizes, array_of_subsizes, array_of_starts, order, oldtype, newtype);
866 int MPI_Type_match_size(int typeclass,int size,MPI_Datatype *datatype){
867 return PMPI_Type_match_size(typeclass,size,datatype);
870 int MPI_Alltoallw( void *sendbuf, int *sendcnts, int *sdispls, MPI_Datatype *sendtypes,
871 void *recvbuf, int *recvcnts, int *rdispls, MPI_Datatype *recvtypes,
873 return PMPI_Alltoallw( sendbuf, sendcnts, sdispls, sendtypes,
874 recvbuf, recvcnts, rdispls, recvtypes,
878 int MPI_Exscan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
879 MPI_Op op, MPI_Comm comm){
880 return PMPI_Exscan(sendbuf, recvbuf, count, datatype, op, comm);
883 int MPI_Comm_set_name (MPI_Comm comm, char* name){
884 return PMPI_Comm_set_name (comm, name);
887 int MPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm * newcomm){
888 return PMPI_Comm_dup_with_info(comm,info,newcomm);
891 int MPI_Comm_split_type(MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm){
892 return PMPI_Comm_split_type(comm, split_type, key, info, newcomm);
895 int MPI_Comm_set_info (MPI_Comm comm, MPI_Info info){
896 return PMPI_Comm_set_info (comm, info);
899 int MPI_Comm_get_info (MPI_Comm comm, MPI_Info* info){
900 return PMPI_Comm_get_info (comm, info);
903 int MPI_Info_get(MPI_Info info,char *key,int valuelen, char *value, int *flag){
904 return PMPI_Info_get(info,key,valuelen, value, flag);
907 int MPI_Comm_create_errhandler( MPI_Comm_errhandler_fn *function, MPI_Errhandler *errhandler){
908 return PMPI_Comm_create_errhandler( function, errhandler);
911 int MPI_Add_error_class( int *errorclass){
912 return PMPI_Add_error_class( errorclass);
915 int MPI_Add_error_code( int errorclass, int *errorcode){
916 return PMPI_Add_error_code(errorclass, errorcode);
919 int MPI_Add_error_string( int errorcode, char *string){
920 return PMPI_Add_error_string(errorcode, string);
923 int MPI_Comm_call_errhandler(MPI_Comm comm,int errorcode){
924 return PMPI_Comm_call_errhandler(comm, errorcode);
927 int MPI_Info_dup(MPI_Info info, MPI_Info *newinfo){
928 return PMPI_Info_dup(info, newinfo);
931 int MPI_Info_get_valuelen( MPI_Info info, char *key, int *valuelen, int *flag){
932 return PMPI_Info_get_valuelen( info, key, valuelen, flag);
935 int MPI_Info_delete(MPI_Info info, char *key){
936 return PMPI_Info_delete(info, key);
939 int MPI_Info_get_nkeys( MPI_Info info, int *nkeys){
940 return PMPI_Info_get_nkeys( info, nkeys);
943 int MPI_Info_get_nthkey( MPI_Info info, int n, char *key){
944 return PMPI_Info_get_nthkey( info, n, key);
947 int MPI_Get_version (int *version,int *subversion){
948 return PMPI_Get_version (version,subversion);
951 int MPI_Get_library_version (char *version,int *len){
952 return PMPI_Get_library_version (version,len);
955 int MPI_Request_get_status( MPI_Request request, int *flag, MPI_Status *status){
956 return PMPI_Request_get_status( request, flag, status);
959 int MPI_Grequest_start( MPI_Grequest_query_function *query_fn, MPI_Grequest_free_function *free_fn, MPI_Grequest_cancel_function *cancel_fn, void *extra_state, MPI_Request *request){
960 return PMPI_Grequest_start( query_fn, free_fn, cancel_fn, extra_state, request);
963 int MPI_Grequest_complete( MPI_Request request){
964 return PMPI_Grequest_complete( request);
967 int MPI_Status_set_cancelled(MPI_Status *status,int flag){
968 return PMPI_Status_set_cancelled(status,flag);
971 int MPI_Status_set_elements( MPI_Status *status, MPI_Datatype datatype, int count){
972 return PMPI_Status_set_elements( status, datatype, count);
975 int MPI_Comm_connect( char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm){
976 return PMPI_Comm_connect( port_name, info, root, comm, newcomm);
979 int MPI_Publish_name( char *service_name, MPI_Info info, char *port_name){
980 return PMPI_Publish_name( service_name, info, port_name);
983 int MPI_Unpublish_name( char *service_name, MPI_Info info, char *port_name){
984 return PMPI_Unpublish_name( service_name, info, port_name);
987 int MPI_Lookup_name( char *service_name, MPI_Info info, char *port_name){
988 return PMPI_Lookup_name( service_name, info, port_name);
991 int MPI_Comm_join( int fd, MPI_Comm *intercomm){
992 return PMPI_Comm_join( fd, intercomm);
995 int MPI_Open_port( MPI_Info info, char *port_name){
996 return PMPI_Open_port( info,port_name);
999 int MPI_Close_port( char *port_name){
1000 return PMPI_Close_port( port_name);
1003 int MPI_Comm_accept( char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm){
1004 return PMPI_Comm_accept( port_name, info, root, comm, newcomm);
1007 int MPI_Comm_spawn( char *command, char **argv, int maxprocs, MPI_Info info, int root,
1008 MPI_Comm comm, MPI_Comm *intercomm, int* array_of_errcodes){
1009 return PMPI_Comm_spawn( command, argv, maxprocs, info, root, comm, intercomm, array_of_errcodes);
1012 int MPI_Comm_spawn_multiple( int count, char **array_of_commands, char*** array_of_argv,
1013 int* array_of_maxprocs, MPI_Info* array_of_info, int root,
1014 MPI_Comm comm, MPI_Comm *intercomm, int* array_of_errcodes){
1015 return PMPI_Comm_spawn_multiple( count, array_of_commands, array_of_argv, array_of_maxprocs,
1016 array_of_info, root, comm, intercomm, array_of_errcodes);
1019 int MPI_Comm_get_parent( MPI_Comm *parent){
1020 return PMPI_Comm_get_parent( parent);
1023 int MPI_Type_create_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* new_type) {
1024 return PMPI_Type_create_hvector(count, blocklen, stride, old_type, new_type);