1 /* Copyright (c) 2007-2014. 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, "Logging specific to SMPI (mpi)");
12 /* MPI User level calls */
14 int MPI_Init(int *argc, char ***argv)
16 return PMPI_Init(argc, argv);
19 int MPI_Finalize(void)
21 return PMPI_Finalize();
24 int MPI_Finalized(int * flag)
26 return PMPI_Finalized(flag);
29 int MPI_Init_thread(int *argc, char ***argv, int required, int *provided)
31 return PMPI_Init_thread(argc, argv, required, provided);
34 int MPI_Query_thread(int *provided)
36 return PMPI_Query_thread(provided);
39 int MPI_Is_thread_main(int *flag)
41 return PMPI_Is_thread_main(flag);
44 int MPI_Abort(MPI_Comm comm, int errorcode)
46 return PMPI_Abort(comm, errorcode);
49 double MPI_Wtime(void)
54 double MPI_Wtick(void)
59 int MPI_Address(void *location, MPI_Aint * address)
61 return PMPI_Address(location, address);
64 int MPI_Get_address(void *location, MPI_Aint * address)
66 return PMPI_Get_address(location, address);
69 int MPI_Type_free(MPI_Datatype * datatype)
71 return PMPI_Type_free(datatype);
74 int MPI_Type_dup(MPI_Datatype datatype, MPI_Datatype * newdatatype)
76 return PMPI_Type_dup(datatype, newdatatype);
79 int MPI_Type_set_name(MPI_Datatype datatype, char * name)
81 return PMPI_Type_set_name(datatype, name);
84 int MPI_Type_get_name(MPI_Datatype datatype, char * name, int* len)
86 return PMPI_Type_get_name(datatype,name,len);
89 int MPI_Type_get_attr (MPI_Datatype type, int type_keyval, void *attribute_val, int* flag)
91 return PMPI_Type_get_attr ( type, type_keyval, attribute_val, flag);
94 int MPI_Type_set_attr (MPI_Datatype type, int type_keyval, void *attribute_val)
96 return PMPI_Type_set_attr ( type, type_keyval, attribute_val);
99 int MPI_Type_delete_attr (MPI_Datatype type, int type_keyval)
101 return PMPI_Type_delete_attr (type, type_keyval);
104 int MPI_Type_create_keyval(MPI_Type_copy_attr_function* copy_fn, MPI_Type_delete_attr_function* delete_fn, int* keyval,
107 return PMPI_Type_create_keyval(copy_fn, delete_fn, keyval, extra_state) ;
110 int MPI_Type_free_keyval(int* keyval) {
111 return PMPI_Type_free_keyval( keyval);
114 int MPI_Pcontrol(const int level )
116 return PMPI_Pcontrol(level);
119 int MPI_Type_size(MPI_Datatype datatype, int *size)
121 return PMPI_Type_size(datatype, size);
124 int MPI_Type_get_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
126 return PMPI_Type_get_extent(datatype, lb, extent);
129 int MPI_Type_get_true_extent(MPI_Datatype datatype, MPI_Aint * lb, MPI_Aint * extent)
131 return PMPI_Type_get_true_extent(datatype, lb, extent);
134 int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint * extent)
136 return PMPI_Type_extent(datatype, extent);
139 int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint * disp)
141 return PMPI_Type_lb(datatype, disp);
144 int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint * disp)
146 return PMPI_Type_ub(datatype, disp);
149 int MPI_Op_create(MPI_User_function * function, int commute, MPI_Op * op)
151 return PMPI_Op_create(function, commute, op);
154 int MPI_Op_free(MPI_Op * op)
156 return PMPI_Op_free(op);
159 int MPI_Group_free(MPI_Group * group)
161 return PMPI_Group_free(group);
164 int MPI_Group_size(MPI_Group group, int *size)
166 return PMPI_Group_size(group, size);
169 int MPI_Group_rank(MPI_Group group, int *rank)
171 return PMPI_Group_rank(group, rank);
174 int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1, MPI_Group group2, int *ranks2)
176 return PMPI_Group_translate_ranks(group1, n, ranks1, group2, ranks2);
179 int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result)
181 return PMPI_Group_compare(group1, group2, result);
184 int MPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
186 return PMPI_Group_union(group1, group2, newgroup);
189 int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
191 return PMPI_Group_intersection(group1, group2, newgroup);
194 int MPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group * newgroup)
196 return PMPI_Group_difference(group1, group2, newgroup);
199 int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
201 return PMPI_Group_incl(group, n, ranks, newgroup);
204 int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
206 return PMPI_Group_excl(group, n, ranks, newgroup);
209 int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3], MPI_Group * newgroup)
211 return PMPI_Group_range_incl(group, n, ranges, newgroup);
214 int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3], MPI_Group * newgroup)
216 return PMPI_Group_range_excl(group, n, ranges, newgroup);
219 int MPI_Comm_rank(MPI_Comm comm, int *rank)
221 return PMPI_Comm_rank(comm, rank);
224 int MPI_Comm_size(MPI_Comm comm, int *size)
226 return PMPI_Comm_size(comm, size);
229 int MPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag)
231 return PMPI_Comm_get_attr (comm, comm_keyval, attribute_val, flag);
234 int MPI_Comm_set_attr (MPI_Comm comm, int comm_keyval, void *attribute_val)
236 return PMPI_Comm_set_attr ( comm, comm_keyval, attribute_val);
239 int MPI_Comm_delete_attr (MPI_Comm comm, int comm_keyval)
241 return PMPI_Comm_delete_attr (comm, comm_keyval);
244 int MPI_Comm_create_keyval(MPI_Comm_copy_attr_function* copy_fn, MPI_Comm_delete_attr_function* delete_fn, int* keyval,
247 return PMPI_Comm_create_keyval(copy_fn, delete_fn, keyval, extra_state) ;
250 int MPI_Comm_free_keyval(int* keyval) {
251 return PMPI_Comm_free_keyval( keyval);
254 int MPI_Comm_get_name (MPI_Comm comm, char* name, int* len)
256 return PMPI_Comm_get_name(comm, name, len);
259 int MPI_Comm_group(MPI_Comm comm, MPI_Group * group)
261 return PMPI_Comm_group(comm, group);
264 int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result)
266 return PMPI_Comm_compare(comm1, comm2, result);
269 int MPI_Comm_dup(MPI_Comm comm, MPI_Comm * newcomm)
271 return PMPI_Comm_dup(comm, newcomm);
274 int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm * newcomm)
276 return PMPI_Comm_create(comm, group, newcomm);
279 int MPI_Comm_free(MPI_Comm * comm)
281 return PMPI_Comm_free(comm);
284 int MPI_Comm_disconnect(MPI_Comm * comm)
286 return PMPI_Comm_disconnect(comm);
289 int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm* comm_out)
291 return PMPI_Comm_split(comm, color, key, comm_out);
294 int MPI_Send_init(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm, MPI_Request * request)
296 return PMPI_Send_init(buf, count, datatype, dst, tag, comm, request);
299 int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request * request)
301 return PMPI_Recv_init(buf, count, datatype, src, tag, comm, request);
304 int MPI_Start(MPI_Request * request)
306 return PMPI_Start(request);
309 int MPI_Startall(int count, MPI_Request * requests)
311 return PMPI_Startall(count, requests);
314 int MPI_Request_free(MPI_Request * request)
316 return PMPI_Request_free(request);
319 int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request * request)
321 return PMPI_Irecv(buf, count, datatype, src, tag, comm, request);
324 int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm, MPI_Request * request)
326 return PMPI_Isend(buf, count, datatype, dst, tag, comm, request);
329 int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Status * status)
331 return PMPI_Recv(buf, count, datatype, src, tag, comm, status);
334 int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm)
336 return PMPI_Send(buf, count, datatype, dst, tag, comm);
339 int MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype,int dst, int sendtag, void *recvbuf, int recvcount,
340 MPI_Datatype recvtype, int src, int recvtag, MPI_Comm comm, MPI_Status * status)
342 return PMPI_Sendrecv(sendbuf, sendcount, sendtype, dst, sendtag, recvbuf, recvcount, recvtype, src, recvtag,
346 int MPI_Sendrecv_replace(void *buf, int count, MPI_Datatype datatype, int dst, int sendtag, int src, int recvtag,
347 MPI_Comm comm, MPI_Status * status)
349 return PMPI_Sendrecv_replace(buf, count, datatype, dst, sendtag, src, recvtag, comm, status);
352 int MPI_Test(MPI_Request * request, int *flag, MPI_Status * status)
354 return PMPI_Test(request, flag, status);
357 int MPI_Testany(int count, MPI_Request requests[], int *index, int *flag, MPI_Status * status)
359 return PMPI_Testany(count, requests, index, flag, status);
362 int MPI_Wait(MPI_Request * request, MPI_Status * status)
364 return PMPI_Wait(request, status);
367 int MPI_Waitany(int count, MPI_Request requests[], int *index, MPI_Status * status)
369 return PMPI_Waitany(count, requests, index, status);
372 int MPI_Waitall(int count, MPI_Request requests[], MPI_Status status[])
374 return PMPI_Waitall(count, requests, status);
377 int MPI_Waitsome(int incount, MPI_Request requests[], int *outcount, int *indices, MPI_Status status[])
379 return PMPI_Waitsome(incount, requests, outcount, indices, status);
382 int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm)
384 return PMPI_Bcast(buf, count, datatype, root, comm);
387 int MPI_Barrier(MPI_Comm comm)
389 return PMPI_Barrier(comm);
392 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype,
393 int root, MPI_Comm comm)
395 return PMPI_Gather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, root, comm);
398 int MPI_Gatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int *recvcounts, int *displs,
399 MPI_Datatype recvtype, int root, MPI_Comm comm)
401 return PMPI_Gatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, root, comm);
404 int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount,
405 MPI_Datatype recvtype, MPI_Comm comm)
407 return PMPI_Allgather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm);
410 int MPI_Allgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int *recvcounts, int *displs,
411 MPI_Datatype recvtype, MPI_Comm comm)
413 return PMPI_Allgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm);
416 int MPI_Scatter(void *sendbuf, int sendcount, MPI_Datatype sendtype,void *recvbuf, int recvcount, MPI_Datatype recvtype,
417 int root, MPI_Comm comm)
419 return PMPI_Scatter(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, root, comm);
422 int MPI_Scatterv(void *sendbuf, int *sendcounts, int *displs, MPI_Datatype sendtype, void *recvbuf, int recvcount,
423 MPI_Datatype recvtype, int root, MPI_Comm comm)
425 return PMPI_Scatterv(sendbuf, sendcounts, displs, sendtype, recvbuf, recvcount, recvtype, root, comm);
428 int MPI_Reduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm)
430 return PMPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm);
433 int MPI_Reduce_local(void *inbuf, void *inoutbuf, int count, MPI_Datatype datatype, MPI_Op op){
434 return PMPI_Reduce_local(inbuf, inoutbuf, count, datatype, op);
437 int MPI_Allreduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
439 return PMPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm);
442 int MPI_Scan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
444 return PMPI_Scan(sendbuf, recvbuf, count, datatype, op, comm);
447 int MPI_Reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
449 return PMPI_Reduce_scatter(sendbuf, recvbuf, recvcounts, datatype, op, comm);
452 int MPI_Reduce_scatter_block(void *sendbuf, void *recvbuf, int recvcount, MPI_Datatype datatype, MPI_Op op,
455 return PMPI_Reduce_scatter_block(sendbuf, recvbuf, recvcount, datatype, op, comm);
458 int MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype sendtype,void *recvbuf, int recvcount,
459 MPI_Datatype recvtype, MPI_Comm comm)
461 return PMPI_Alltoall(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm);
464 int MPI_Alltoallv(void *sendbuf, int *sendcounts, int *senddisps, MPI_Datatype sendtype, void *recvbuf, int *recvcounts,
465 int *recvdisps, MPI_Datatype recvtype, MPI_Comm comm)
467 return PMPI_Alltoallv(sendbuf, sendcounts, senddisps, sendtype, recvbuf, recvcounts, recvdisps, recvtype, comm);
470 int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr){
471 return PMPI_Alloc_mem(size, info, baseptr);
474 int MPI_Free_mem(void *baseptr){
475 return PMPI_Free_mem(baseptr);
478 int MPI_Get_processor_name(char *name, int *resultlen)
480 return PMPI_Get_processor_name(name, resultlen);
483 int MPI_Get_count(MPI_Status * status, MPI_Datatype datatype, int *count)
485 return PMPI_Get_count(status, datatype, count);
488 int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm, int* size) {
489 return PMPI_Pack_size(incount, datatype, comm, size);
492 int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int* coords) {
493 return PMPI_Cart_coords(comm, rank, maxdims, coords);
496 int MPI_Cart_create(MPI_Comm comm_old, int ndims, int* dims, int* periods, int reorder, MPI_Comm* comm_cart) {
497 return PMPI_Cart_create(comm_old, ndims, dims, periods, reorder, comm_cart);
500 int MPI_Cart_get(MPI_Comm comm, int maxdims, int* dims, int* periods, int* coords) {
501 return PMPI_Cart_get(comm, maxdims, dims, periods, coords);
504 int MPI_Cart_map(MPI_Comm comm_old, int ndims, int* dims, int* periods, int* newrank) {
505 return PMPI_Cart_map(comm_old, ndims, dims, periods, newrank);
508 int MPI_Cart_rank(MPI_Comm comm, int* coords, int* rank) {
509 return PMPI_Cart_rank(comm, coords, rank);
512 int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int* source, int* dest) {
513 return PMPI_Cart_shift(comm, direction, displ, source, dest);
516 int MPI_Cart_sub(MPI_Comm comm, int* remain_dims, MPI_Comm* comm_new) {
517 return PMPI_Cart_sub(comm, remain_dims, comm_new);
520 int MPI_Cartdim_get(MPI_Comm comm, int* ndims) {
521 return PMPI_Cartdim_get(comm, ndims);
524 int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int* index, int* edges, int reorder, MPI_Comm* comm_graph) {
525 return PMPI_Graph_create(comm_old, nnodes, index, edges, reorder, comm_graph);
528 int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int* index, int* edges) {
529 return PMPI_Graph_get(comm, maxindex, maxedges, index, edges);
532 int MPI_Graph_map(MPI_Comm comm_old, int nnodes, int* index, int* edges, int* newrank) {
533 return PMPI_Graph_map(comm_old, nnodes, index, edges, newrank);
536 int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int* neighbors) {
537 return PMPI_Graph_neighbors(comm, rank, maxneighbors, neighbors);
540 int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int* nneighbors) {
541 return PMPI_Graph_neighbors_count(comm, rank, nneighbors);
544 int MPI_Graphdims_get(MPI_Comm comm, int* nnodes, int* nedges) {
545 return PMPI_Graphdims_get(comm, nnodes, nedges);
548 int MPI_Topo_test(MPI_Comm comm, int* top_type) {
549 return PMPI_Topo_test(comm, top_type);
552 int MPI_Error_class(int errorcode, int* errorclass) {
553 return PMPI_Error_class(errorcode, errorclass);
556 int MPI_Errhandler_create(MPI_Handler_function* function, MPI_Errhandler* errhandler) {
557 return PMPI_Errhandler_create(function, errhandler);
560 int MPI_Errhandler_free(MPI_Errhandler* errhandler) {
561 return PMPI_Errhandler_free(errhandler);
564 int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler* errhandler) {
565 return PMPI_Errhandler_get(comm, errhandler);
568 int MPI_Error_string(int errorcode, char* string, int* resultlen) {
569 return PMPI_Error_string(errorcode, string, resultlen);
572 int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler) {
573 return PMPI_Errhandler_set(comm, errhandler);
576 int MPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler) {
577 return PMPI_Comm_set_errhandler(comm, errhandler);
580 int MPI_Comm_get_errhandler(MPI_Comm comm, MPI_Errhandler* errhandler) {
581 return PMPI_Errhandler_set(comm, errhandler);
584 int MPI_Win_get_group(MPI_Win win, MPI_Group * group){
585 return PMPI_Win_get_group(win, group);
588 int MPI_Win_set_errhandler(MPI_Win win, MPI_Errhandler errhandler) {
589 return PMPI_Win_set_errhandler(win, errhandler);
592 int MPI_Type_contiguous(int count, MPI_Datatype old_type, MPI_Datatype* newtype) {
593 return PMPI_Type_contiguous(count, old_type, newtype);
596 int MPI_Cancel(MPI_Request* request) {
597 return PMPI_Cancel(request);
600 int MPI_Buffer_attach(void* buffer, int size) {
601 return PMPI_Buffer_attach(buffer, size);
604 int MPI_Buffer_detach(void* buffer, int* size) {
605 return PMPI_Buffer_detach(buffer, size);
608 int MPI_Testsome(int incount, MPI_Request* requests, int* outcount, int* indices, MPI_Status* statuses) {
609 return PMPI_Testsome(incount, requests, outcount, indices, statuses);
612 int MPI_Comm_test_inter(MPI_Comm comm, int* flag) {
613 return PMPI_Comm_test_inter(comm, flag);
616 int MPI_Unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm) {
617 return PMPI_Unpack(inbuf, insize, position, outbuf, outcount, type, comm);
620 int MPI_Pack_external_size(char *datarep, int incount, MPI_Datatype datatype, MPI_Aint *size){
621 return PMPI_Pack_external_size(datarep, incount, datatype, size);
624 int MPI_Pack_external(char *datarep, void *inbuf, int incount, MPI_Datatype datatype, void *outbuf, MPI_Aint outcount,
626 return PMPI_Pack_external(datarep, inbuf, incount, datatype, outbuf, outcount, position);
629 int MPI_Unpack_external(char *datarep, void *inbuf, MPI_Aint insize, MPI_Aint *position, void *outbuf, int outcount,
630 MPI_Datatype datatype){
631 return PMPI_Unpack_external( datarep, inbuf, insize, position, outbuf, outcount, datatype);
634 int MPI_Type_commit(MPI_Datatype* datatype) {
635 return PMPI_Type_commit(datatype);
638 int MPI_Type_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
639 return PMPI_Type_hindexed(count, blocklens, indices, old_type, newtype);
642 int MPI_Type_create_hindexed(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype old_type,
643 MPI_Datatype* new_type) {
644 return PMPI_Type_create_hindexed(count, blocklens,indices,old_type,new_type);
647 int MPI_Type_create_hindexed_block(int count, int blocklength, MPI_Aint* indices, MPI_Datatype old_type,
648 MPI_Datatype* newtype) {
649 return PMPI_Type_create_hindexed_block(count, blocklength, indices, old_type, newtype);
652 int MPI_Type_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
653 return PMPI_Type_hvector(count, blocklen, stride, old_type, newtype);
656 int MPI_Type_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
657 return PMPI_Type_indexed(count, blocklens, indices, old_type, newtype);
660 int MPI_Type_create_indexed(int count, int* blocklens, int* indices, MPI_Datatype old_type, MPI_Datatype* newtype) {
661 return PMPI_Type_create_indexed(count, blocklens, indices, old_type, newtype);
664 int MPI_Type_create_indexed_block(int count, int blocklength, int* indices, MPI_Datatype old_type,
665 MPI_Datatype *newtype){
666 return PMPI_Type_create_indexed_block(count, blocklength, indices, old_type, newtype);
669 int MPI_Type_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* newtype) {
670 return PMPI_Type_struct(count, blocklens, indices, old_types, newtype);
673 int MPI_Type_create_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types,
674 MPI_Datatype* newtype) {
675 return PMPI_Type_create_struct(count, blocklens, indices, old_types, newtype);
678 int MPI_Type_vector(int count, int blocklen, int stride, MPI_Datatype old_type, MPI_Datatype* newtype) {
679 return PMPI_Type_vector(count, blocklen, stride, old_type, newtype);
682 int MPI_Ssend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
683 return PMPI_Ssend(buf, count, datatype, dest, tag, comm);
686 int MPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request){
687 return PMPI_Ssend_init(buf, count, datatype, dest, tag, comm, request);
690 int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm, int remote_leader, int tag,
691 MPI_Comm* comm_out) {
692 return PMPI_Intercomm_create(local_comm, local_leader, peer_comm, remote_leader, tag, comm_out);
695 int MPI_Intercomm_merge(MPI_Comm comm, int high, MPI_Comm* comm_out) {
696 return PMPI_Intercomm_merge(comm, high, comm_out);
699 int MPI_Bsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
700 return PMPI_Bsend(buf, count, datatype, dest, tag, comm);
703 int MPI_Bsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request){
704 return PMPI_Bsend_init(buf, count, datatype, dest, tag, comm, request);
707 int MPI_Ibsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
708 return PMPI_Ibsend(buf, count, datatype, dest, tag, comm, request);
711 int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group* group) {
712 return PMPI_Comm_remote_group(comm, group);
715 int MPI_Comm_remote_size(MPI_Comm comm, int* size) {
716 return PMPI_Comm_remote_size(comm, size);
719 int MPI_Issend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
720 return PMPI_Issend(buf, count, datatype, dest, tag, comm, request);
723 int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) {
724 return PMPI_Probe(source, tag, comm, status);
727 int MPI_Attr_delete(MPI_Comm comm, int keyval) {
728 return PMPI_Attr_delete(comm, keyval);
731 int MPI_Attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag) {
732 return PMPI_Attr_get(comm, keyval, attr_value, flag);
735 int MPI_Attr_put(MPI_Comm comm, int keyval, void* attr_value) {
736 return PMPI_Attr_put(comm, keyval, attr_value);
739 int MPI_Rsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {
740 return PMPI_Rsend(buf, count, datatype, dest, tag, comm);
743 int MPI_Rsend_init(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request){
744 return PMPI_Rsend_init(buf, count, datatype, dest, tag, comm, request);
747 int MPI_Irsend(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request) {
748 return PMPI_Irsend(buf, count, datatype, dest, tag, comm, request);
751 int MPI_Keyval_create(MPI_Copy_function* copy_fn, MPI_Delete_function* delete_fn, int* keyval, void* extra_state) {
752 return PMPI_Keyval_create(copy_fn, delete_fn, keyval, extra_state);
755 int MPI_Keyval_free(int* keyval) {
756 return PMPI_Keyval_free(keyval);
759 int MPI_Test_cancelled(MPI_Status* status, int* flag) {
760 return PMPI_Test_cancelled(status, flag);
763 int MPI_Pack(void* inbuf, int incount, MPI_Datatype type, void* outbuf, int outcount, int* position, MPI_Comm comm) {
764 return PMPI_Pack(inbuf, incount, type, outbuf, outcount, position, comm);
767 int MPI_Testall(int count, MPI_Request* requests, int* flag, MPI_Status* statuses) {
768 return PMPI_Testall(count, requests, flag, statuses);
771 int MPI_Get_elements(MPI_Status* status, MPI_Datatype datatype, int* elements) {
772 return PMPI_Get_elements(status, datatype, elements);
775 int MPI_Dims_create(int nnodes, int ndims, int* dims) {
776 return PMPI_Dims_create(nnodes, ndims, dims);
779 int MPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* status) {
780 return PMPI_Iprobe(source, tag, comm, flag, status);
783 int MPI_Initialized(int* flag) {
784 return PMPI_Initialized(flag);
787 int MPI_Win_fence( int assert, MPI_Win win){
788 return PMPI_Win_fence( assert, win);
791 int MPI_Win_free( MPI_Win* win){
792 return PMPI_Win_free( win);
795 int MPI_Win_create( void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm, MPI_Win *win){
796 return PMPI_Win_create( base, size, disp_unit, info, comm,win);
799 int MPI_Win_set_name(MPI_Win win, char * name)
801 return PMPI_Win_set_name(win, name);
804 int MPI_Win_get_name(MPI_Win win, char * name, int* len)
806 return PMPI_Win_get_name(win,name,len);
809 int MPI_Win_complete(MPI_Win win){
810 return PMPI_Win_complete(win);
813 int MPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win) {
814 return PMPI_Win_lock(lock_type, rank, assert, win);
817 int MPI_Win_post(MPI_Group group, int assert, MPI_Win win){
818 return PMPI_Win_post(group, assert, win);
821 int MPI_Win_start(MPI_Group group, int assert, MPI_Win win){
822 return PMPI_Win_start(group, assert, win);
825 int MPI_Win_test(MPI_Win win, int *flag){
826 return PMPI_Win_test(win, flag);
829 int MPI_Win_unlock(int rank, MPI_Win win){
830 return PMPI_Win_unlock(rank, win);
833 int MPI_Win_wait(MPI_Win win){
834 return PMPI_Win_wait(win);
837 int MPI_Info_create( MPI_Info *info){
838 return PMPI_Info_create( info);
841 int MPI_Info_set( MPI_Info info, char *key, char *value){
842 return PMPI_Info_set( info, key, value);
845 int MPI_Info_free( MPI_Info *info){
846 return PMPI_Info_free( info);
849 int MPI_Get( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
850 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Win win){
851 return PMPI_Get(origin_addr,origin_count, origin_datatype,target_rank, target_disp, target_count,target_datatype,win);
854 int MPI_Put( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
855 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Win win){
856 return PMPI_Put(origin_addr,origin_count, origin_datatype,target_rank,target_disp, target_count,target_datatype, win);
859 int MPI_Accumulate( void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank,
860 MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Op op, MPI_Win win){
861 return PMPI_Accumulate( origin_addr,origin_count, origin_datatype,target_rank,
862 target_disp, target_count,target_datatype,op, win);
865 int MPI_Type_get_envelope( MPI_Datatype datatype, int *num_integers,
866 int *num_addresses, int *num_datatypes, int *combiner){
867 return PMPI_Type_get_envelope( datatype, num_integers, num_addresses, num_datatypes, combiner);
870 int MPI_Type_get_contents(MPI_Datatype datatype, int max_integers, int max_addresses, int max_datatypes,
871 int* array_of_integers, MPI_Aint* array_of_addresses, MPI_Datatype *array_of_datatypes){
872 return PMPI_Type_get_contents(datatype, max_integers, max_addresses,max_datatypes, array_of_integers,
873 array_of_addresses, array_of_datatypes);
876 int MPI_Type_create_darray(int size, int rank, int ndims, int* array_of_gsizes, int* array_of_distribs,
877 int* array_of_dargs, int* array_of_psizes,int order, MPI_Datatype oldtype,
878 MPI_Datatype *newtype) {
879 return PMPI_Type_create_darray(size, rank, ndims, array_of_gsizes,array_of_distribs, array_of_dargs, array_of_psizes,
880 order, oldtype, newtype) ;
883 int MPI_Type_create_resized(MPI_Datatype oldtype,MPI_Aint lb, MPI_Aint extent, MPI_Datatype *newtype){
884 return PMPI_Type_create_resized(oldtype,lb, extent, newtype);
887 int MPI_Type_create_subarray(int ndims,int *array_of_sizes, int *array_of_subsizes, int *array_of_starts, int order,
888 MPI_Datatype oldtype, MPI_Datatype *newtype){
889 return PMPI_Type_create_subarray(ndims,array_of_sizes, array_of_subsizes, array_of_starts, order, oldtype, newtype);
892 int MPI_Type_match_size(int typeclass,int size,MPI_Datatype *datatype){
893 return PMPI_Type_match_size(typeclass,size,datatype);
896 int MPI_Alltoallw( void *sendbuf, int *sendcnts, int *sdispls, MPI_Datatype *sendtypes,
897 void *recvbuf, int *recvcnts, int *rdispls, MPI_Datatype *recvtypes, MPI_Comm comm){
898 return PMPI_Alltoallw( sendbuf, sendcnts, sdispls, sendtypes, recvbuf, recvcnts, rdispls, recvtypes, comm);
901 int MPI_Exscan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm){
902 return PMPI_Exscan(sendbuf, recvbuf, count, datatype, op, comm);
905 int MPI_Comm_set_name (MPI_Comm comm, char* name){
906 return PMPI_Comm_set_name (comm, name);
909 int MPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm * newcomm){
910 return PMPI_Comm_dup_with_info(comm,info,newcomm);
913 int MPI_Comm_split_type(MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm){
914 return PMPI_Comm_split_type(comm, split_type, key, info, newcomm);
917 int MPI_Comm_set_info (MPI_Comm comm, MPI_Info info){
918 return PMPI_Comm_set_info (comm, info);
921 int MPI_Comm_get_info (MPI_Comm comm, MPI_Info* info){
922 return PMPI_Comm_get_info (comm, info);
925 int MPI_Info_get(MPI_Info info,char *key,int valuelen, char *value, int *flag){
926 return PMPI_Info_get(info,key,valuelen, value, flag);
929 int MPI_Comm_create_errhandler( MPI_Comm_errhandler_fn *function, MPI_Errhandler *errhandler){
930 return PMPI_Comm_create_errhandler( function, errhandler);
933 int MPI_Add_error_class( int *errorclass){
934 return PMPI_Add_error_class( errorclass);
937 int MPI_Add_error_code( int errorclass, int *errorcode){
938 return PMPI_Add_error_code(errorclass, errorcode);
941 int MPI_Add_error_string( int errorcode, char *string){
942 return PMPI_Add_error_string(errorcode, string);
945 int MPI_Comm_call_errhandler(MPI_Comm comm,int errorcode){
946 return PMPI_Comm_call_errhandler(comm, errorcode);
949 int MPI_Info_dup(MPI_Info info, MPI_Info *newinfo){
950 return PMPI_Info_dup(info, newinfo);
953 int MPI_Info_get_valuelen( MPI_Info info, char *key, int *valuelen, int *flag){
954 return PMPI_Info_get_valuelen( info, key, valuelen, flag);
957 int MPI_Info_delete(MPI_Info info, char *key){
958 return PMPI_Info_delete(info, key);
961 int MPI_Info_get_nkeys( MPI_Info info, int *nkeys){
962 return PMPI_Info_get_nkeys( info, nkeys);
965 int MPI_Info_get_nthkey( MPI_Info info, int n, char *key){
966 return PMPI_Info_get_nthkey( info, n, key);
969 int MPI_Get_version (int *version,int *subversion){
970 return PMPI_Get_version (version,subversion);
973 int MPI_Get_library_version (char *version,int *len){
974 return PMPI_Get_library_version (version,len);
977 int MPI_Request_get_status( MPI_Request request, int *flag, MPI_Status *status){
978 return PMPI_Request_get_status( request, flag, status);
981 int MPI_Grequest_start(MPI_Grequest_query_function *query_fn, MPI_Grequest_free_function *free_fn,
982 MPI_Grequest_cancel_function *cancel_fn, void *extra_state, MPI_Request *request){
983 return PMPI_Grequest_start( query_fn, free_fn, cancel_fn, extra_state, request);
986 int MPI_Grequest_complete( MPI_Request request){
987 return PMPI_Grequest_complete( request);
990 int MPI_Status_set_cancelled(MPI_Status *status,int flag){
991 return PMPI_Status_set_cancelled(status,flag);
994 int MPI_Status_set_elements( MPI_Status *status, MPI_Datatype datatype, int count){
995 return PMPI_Status_set_elements( status, datatype, count);
998 int MPI_Comm_connect( char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm){
999 return PMPI_Comm_connect( port_name, info, root, comm, newcomm);
1002 int MPI_Publish_name( char *service_name, MPI_Info info, char *port_name){
1003 return PMPI_Publish_name( service_name, info, port_name);
1006 int MPI_Unpublish_name( char *service_name, MPI_Info info, char *port_name){
1007 return PMPI_Unpublish_name( service_name, info, port_name);
1010 int MPI_Lookup_name( char *service_name, MPI_Info info, char *port_name){
1011 return PMPI_Lookup_name( service_name, info, port_name);
1014 int MPI_Comm_join( int fd, MPI_Comm *intercomm){
1015 return PMPI_Comm_join( fd, intercomm);
1018 int MPI_Open_port( MPI_Info info, char *port_name){
1019 return PMPI_Open_port( info,port_name);
1022 int MPI_Close_port( char *port_name){
1023 return PMPI_Close_port( port_name);
1026 int MPI_Comm_accept( char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm){
1027 return PMPI_Comm_accept( port_name, info, root, comm, newcomm);
1030 int MPI_Comm_spawn( char *command, char **argv, int maxprocs, MPI_Info info, int root,
1031 MPI_Comm comm, MPI_Comm *intercomm, int* array_of_errcodes){
1032 return PMPI_Comm_spawn( command, argv, maxprocs, info, root, comm, intercomm, array_of_errcodes);
1035 int MPI_Comm_spawn_multiple(int count, char **array_of_commands, char*** array_of_argv, int* array_of_maxprocs,
1036 MPI_Info* array_of_info, int root, MPI_Comm comm, MPI_Comm *intercomm,
1037 int* array_of_errcodes){
1038 return PMPI_Comm_spawn_multiple( count, array_of_commands, array_of_argv, array_of_maxprocs,
1039 array_of_info, root, comm, intercomm, array_of_errcodes);
1042 int MPI_Comm_get_parent( MPI_Comm *parent){
1043 return PMPI_Comm_get_parent( parent);
1046 int MPI_Type_create_hvector(int count, int blocklen, MPI_Aint stride, MPI_Datatype old_type, MPI_Datatype* new_type) {
1047 return PMPI_Type_create_hvector(count, blocklen, stride, old_type, new_type);
1050 MPI_Datatype MPI_Type_f2c(MPI_Fint datatype){
1051 return PMPI_Type_f2c(datatype);
1054 MPI_Fint MPI_Type_c2f(MPI_Datatype datatype){
1055 return PMPI_Type_c2f( datatype);
1058 MPI_Group MPI_Group_f2c(MPI_Fint group){
1059 return PMPI_Group_f2c( group);
1062 MPI_Fint MPI_Group_c2f(MPI_Group group){
1063 return PMPI_Group_c2f(group);
1066 MPI_Request MPI_Request_f2c(MPI_Fint request){
1067 return PMPI_Request_f2c(request);
1070 MPI_Fint MPI_Request_c2f(MPI_Request request) {
1071 return PMPI_Request_c2f(request);
1074 MPI_Win MPI_Win_f2c(MPI_Fint win){
1075 return PMPI_Win_f2c(win);
1078 MPI_Fint MPI_Win_c2f(MPI_Win win){
1079 return PMPI_Win_c2f(win);
1082 MPI_Op MPI_Op_f2c(MPI_Fint op){
1083 return PMPI_Op_f2c(op);
1086 MPI_Fint MPI_Op_c2f(MPI_Op op){
1087 return PMPI_Op_c2f(op);
1090 MPI_Comm MPI_Comm_f2c(MPI_Fint comm){
1091 return PMPI_Comm_f2c(comm);
1094 MPI_Fint MPI_Comm_c2f(MPI_Comm comm){
1095 return PMPI_Comm_c2f(comm);
1098 MPI_Info MPI_Info_f2c(MPI_Fint info){
1099 return PMPI_Info_f2c(info);
1102 MPI_Fint MPI_Info_c2f(MPI_Info info){
1103 return PMPI_Info_c2f(info);
1106 MPI_Errhandler MPI_Errhandler_f2c(MPI_Fint errhandler){
1107 return PMPI_Errhandler_f2c(errhandler);
1110 MPI_Fint MPI_Errhandler_c2f(MPI_Errhandler errhandler){
1111 return PMPI_Errhandler_c2f(errhandler);