From: Augustin Degomme Date: Mon, 11 Mar 2013 15:30:00 +0000 (+0100) Subject: switch back from two underscores to one in fortran names, to allow linking with exter... X-Git-Tag: v3_9_90~412^2~73 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bdb2a18a1d810e58e43b828efd84e2a6a43e78c8 switch back from two underscores to one in fortran names, to allow linking with external libs --- diff --git a/src/smpi/private.h b/src/smpi/private.h index f36e86890a..3c4e936aca 100644 --- a/src/smpi/private.h +++ b/src/smpi/private.h @@ -269,101 +269,101 @@ void smpi_bench_end(void); void smpi_execute_flops(double flops); // f77 wrappers -void mpi_init__(int*); -void mpi_finalize__(int*); -void mpi_abort__(int* comm, int* errorcode, int* ierr); -void mpi_comm_rank__(int* comm, int* rank, int* ierr); -void mpi_comm_size__(int* comm, int* size, int* ierr); -double mpi_wtime__(void); -double mpi_wtick__(void); -void mpi_initialized__(int* flag, int* ierr); +void mpi_init_(int*); +void mpi_finalize_(int*); +void mpi_abort_(int* comm, int* errorcode, int* ierr); +void mpi_comm_rank_(int* comm, int* rank, int* ierr); +void mpi_comm_size_(int* comm, int* size, int* ierr); +double mpi_wtime_(void); +double mpi_wtick_(void); +void mpi_initialized_(int* flag, int* ierr); -void mpi_comm_dup__(int* comm, int* newcomm, int* ierr); -void mpi_comm_create__(int* comm, int* group, int* newcomm, int* ierr); -void mpi_comm_free__(int* comm, int* ierr); -void mpi_comm_split__(int* comm, int* color, int* key, int* comm_out, int* ierr); -void mpi_group_incl__(int* group, int* n, int* key, int* group_out, int* ierr) ; -void mpi_comm_group__(int* comm, int* group_out, int* ierr); -void mpi_send_init__(void *buf, int* count, int* datatype, int* dst, int* tag, +void mpi_comm_dup_(int* comm, int* newcomm, int* ierr); +void mpi_comm_create_(int* comm, int* group, int* newcomm, int* ierr); +void mpi_comm_free_(int* comm, int* ierr); +void mpi_comm_split_(int* comm, int* color, int* key, int* comm_out, int* ierr); +void mpi_group_incl_(int* group, int* n, int* key, int* group_out, int* ierr) ; +void mpi_comm_group_(int* comm, int* group_out, int* ierr); +void mpi_send_init_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr); -void mpi_isend__(void *buf, int* count, int* datatype, int* dst, +void mpi_isend_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr); -void mpi_irsend__(void *buf, int* count, int* datatype, int* dst, +void mpi_irsend_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr); -void mpi_send__(void* buf, int* count, int* datatype, int* dst, +void mpi_send_(void* buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* ierr); -void mpi_rsend__(void* buf, int* count, int* datatype, int* dst, +void mpi_rsend_(void* buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* ierr); -void mpi_recv_init__(void *buf, int* count, int* datatype, int* src, int* tag, +void mpi_recv_init_(void *buf, int* count, int* datatype, int* src, int* tag, int* comm, int* request, int* ierr); -void mpi_irecv__(void *buf, int* count, int* datatype, int* src, int* tag, +void mpi_irecv_(void *buf, int* count, int* datatype, int* src, int* tag, int* comm, int* request, int* ierr); -void mpi_recv__(void* buf, int* count, int* datatype, int* src, +void mpi_recv_(void* buf, int* count, int* datatype, int* src, int* tag, int* comm, MPI_Status* status, int* ierr); -void mpi_start__(int* request, int* ierr); -void mpi_startall__(int* count, int* requests, int* ierr); -void mpi_wait__(int* request, MPI_Status* status, int* ierr); -void mpi_waitany__(int* count, int* requests, int* index, MPI_Status* status, int* ierr); -void mpi_waitall__(int* count, int* requests, MPI_Status* status, int* ierr); +void mpi_start_(int* request, int* ierr); +void mpi_startall_(int* count, int* requests, int* ierr); +void mpi_wait_(int* request, MPI_Status* status, int* ierr); +void mpi_waitany_(int* count, int* requests, int* index, MPI_Status* status, int* ierr); +void mpi_waitall_(int* count, int* requests, MPI_Status* status, int* ierr); -void mpi_barrier__(int* comm, int* ierr); -void mpi_bcast__(void* buf, int* count, int* datatype, int* root, int* comm, int* ierr); -void mpi_reduce__(void* sendbuf, void* recvbuf, int* count, +void mpi_barrier_(int* comm, int* ierr); +void mpi_bcast_(void* buf, int* count, int* datatype, int* root, int* comm, int* ierr); +void mpi_reduce_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* root, int* comm, int* ierr); -void mpi_allreduce__(void* sendbuf, void* recvbuf, int* count, int* datatype, +void mpi_allreduce_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* comm, int* ierr); -void mpi_reduce_scatter__(void* sendbuf, void* recvbuf, int* recvcounts, int* datatype, +void mpi_reduce_scatter_(void* sendbuf, void* recvbuf, int* recvcounts, int* datatype, int* op, int* comm, int* ierr) ; -void mpi_scatter__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_scatter_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr); -void mpi_scatterv__(void* sendbuf, int* sendcounts, int* displs, int* sendtype, +void mpi_scatterv_(void* sendbuf, int* sendcounts, int* displs, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr); -void mpi_gather__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_gather_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr); -void mpi_gatherv__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_gatherv_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcounts, int* displs, int* recvtype, int* root, int* comm, int* ierr); -void mpi_allgather__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_allgather_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* comm, int* ierr); -void mpi_allgatherv__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_allgatherv_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount,int* displs, int* recvtype, int* comm, int* ierr) ; -void mpi_type_size__(int* datatype, int *size, int* ierr); +void mpi_type_size_(int* datatype, int *size, int* ierr); -void mpi_scan__(void* sendbuf, void* recvbuf, int* count, int* datatype, +void mpi_scan_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* comm, int* ierr); -void mpi_alltoall__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_alltoall_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* comm, int* ierr); -void mpi_alltoallv__(void* sendbuf, int* sendcounts, int* senddisps, int* sendtype, +void mpi_alltoallv_(void* sendbuf, int* sendcounts, int* senddisps, int* sendtype, void* recvbuf, int* recvcounts, int* recvdisps, int* recvtype, int* comm, int* ierr); -void mpi_get_processor_name__(char *name, int *resultlen, int* ierr); -void mpi_test__ (int * request, int *flag, MPI_Status * status, int* ierr); -void mpi_testall__ (int* count, int * requests, int *flag, MPI_Status * statuses, int* ierr); -void mpi_get_count__(MPI_Status * status, int* datatype, int *count, int* ierr); -void mpi_type_extent__(int* datatype, MPI_Aint * extent, int* ierr); -void mpi_attr_get__(int* comm, int* keyval, void* attr_value, int* flag, int* ierr ); -void mpi_type_commit__(int* datatype, int* ierr); -void mpi_type_vector__(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr); -void mpi_type_create_vector__(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr); -void mpi_type_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr); -void mpi_type_create_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr); -void mpi_type_free__(int* datatype, int* ierr); -void mpi_type_lb__(int* datatype, MPI_Aint * extent, int* ierr); -void mpi_type_ub__(int* datatype, MPI_Aint * extent, int* ierr); -void mpi_win_fence__( int* assert, int* win, int* ierr); -void mpi_win_free__( int* win, int* ierr); -void mpi_win_create__( int *base, MPI_Aint* size, int* disp_unit, int* info, int* comm, int *win, int* ierr); -void mpi_info_create__( int *info, int* ierr); -void mpi_info_set__( int *info, char *key, char *value, int* ierr); -void mpi_info_free__(int* info, int* ierr); -void mpi_get__( int *origin_addr, int* origin_count, int* origin_datatype, int* target_rank, +void mpi_get_processor_name_(char *name, int *resultlen, int* ierr); +void mpi_test_ (int * request, int *flag, MPI_Status * status, int* ierr); +void mpi_testall_ (int* count, int * requests, int *flag, MPI_Status * statuses, int* ierr); +void mpi_get_count_(MPI_Status * status, int* datatype, int *count, int* ierr); +void mpi_type_extent_(int* datatype, MPI_Aint * extent, int* ierr); +void mpi_attr_get_(int* comm, int* keyval, void* attr_value, int* flag, int* ierr ); +void mpi_type_commit_(int* datatype, int* ierr); +void mpi_type_vector_(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr); +void mpi_type_create_vector_(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr); +void mpi_type_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr); +void mpi_type_create_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr); +void mpi_type_free_(int* datatype, int* ierr); +void mpi_type_lb_(int* datatype, MPI_Aint * extent, int* ierr); +void mpi_type_ub_(int* datatype, MPI_Aint * extent, int* ierr); +void mpi_win_fence_( int* assert, int* win, int* ierr); +void mpi_win_free_( int* win, int* ierr); +void mpi_win_create_( int *base, MPI_Aint* size, int* disp_unit, int* info, int* comm, int *win, int* ierr); +void mpi_info_create_( int *info, int* ierr); +void mpi_info_set_( int *info, char *key, char *value, int* ierr); +void mpi_info_free_(int* info, int* ierr); +void mpi_get_( int *origin_addr, int* origin_count, int* origin_datatype, int* target_rank, MPI_Aint* target_disp, int* target_count, int* target_datatype, int* win, int* ierr); -void mpi_error_string__(int* errorcode, char* string, int* resultlen, int* ierr); -void mpi_sendrecv__(void* sendbuf, int* sendcount, int* sendtype, int* dst, +void mpi_error_string_(int* errorcode, char* string, int* resultlen, int* ierr); +void mpi_sendrecv_(void* sendbuf, int* sendcount, int* sendtype, int* dst, int* sendtag, void *recvbuf, int* recvcount, int* recvtype, int* src, int* recvtag, int* comm, MPI_Status* status, int* ierr); diff --git a/src/smpi/smpi_f77.c b/src/smpi/smpi_f77.c index 5aaf1dca45..d782052c73 100644 --- a/src/smpi/smpi_f77.c +++ b/src/smpi/smpi_f77.c @@ -98,7 +98,7 @@ static MPI_Op get_op(int op) { : MPI_OP_NULL; } -void mpi_init__(int* ierr) { +void mpi_init_(int* ierr) { comm_lookup = xbt_dynar_new(sizeof(MPI_Comm), NULL); new_comm(MPI_COMM_WORLD); group_lookup = xbt_dynar_new(sizeof(MPI_Group), NULL); @@ -147,7 +147,7 @@ void mpi_init__(int* ierr) { *ierr = MPI_Init(NULL, NULL); } -void mpi_finalize__(int* ierr) { +void mpi_finalize_(int* ierr) { *ierr = MPI_Finalize(); xbt_dynar_free(&op_lookup); op_lookup = NULL; @@ -159,27 +159,27 @@ void mpi_finalize__(int* ierr) { comm_lookup = NULL; } -void mpi_abort__(int* comm, int* errorcode, int* ierr) { +void mpi_abort_(int* comm, int* errorcode, int* ierr) { *ierr = MPI_Abort(get_comm(*comm), *errorcode); } -void mpi_comm_rank__(int* comm, int* rank, int* ierr) { +void mpi_comm_rank_(int* comm, int* rank, int* ierr) { *ierr = MPI_Comm_rank(get_comm(*comm), rank); } -void mpi_comm_size__(int* comm, int* size, int* ierr) { +void mpi_comm_size_(int* comm, int* size, int* ierr) { *ierr = MPI_Comm_size(get_comm(*comm), size); } -double mpi_wtime__(void) { +double mpi_wtime_(void) { return MPI_Wtime(); } -double mpi_wtick__(void) { +double mpi_wtick_(void) { return MPI_Wtick(); } -void mpi_comm_dup__(int* comm, int* newcomm, int* ierr) { +void mpi_comm_dup_(int* comm, int* newcomm, int* ierr) { MPI_Comm tmp; *ierr = MPI_Comm_dup(get_comm(*comm), &tmp); @@ -188,7 +188,7 @@ void mpi_comm_dup__(int* comm, int* newcomm, int* ierr) { } } -void mpi_comm_create__(int* comm, int* group, int* newcomm, int* ierr) { +void mpi_comm_create_(int* comm, int* group, int* newcomm, int* ierr) { MPI_Comm tmp; *ierr = MPI_Comm_create(get_comm(*comm),get_group(*group), &tmp); @@ -198,7 +198,7 @@ void mpi_comm_create__(int* comm, int* group, int* newcomm, int* ierr) { } -void mpi_comm_free__(int* comm, int* ierr) { +void mpi_comm_free_(int* comm, int* ierr) { MPI_Comm tmp = get_comm(*comm); *ierr = MPI_Comm_free(&tmp); @@ -208,7 +208,7 @@ void mpi_comm_free__(int* comm, int* ierr) { } } -void mpi_comm_split__(int* comm, int* color, int* key, int* comm_out, int* ierr) { +void mpi_comm_split_(int* comm, int* color, int* key, int* comm_out, int* ierr) { MPI_Comm tmp; *ierr = MPI_Comm_split(get_comm(*comm), *color, *key, &tmp); @@ -217,7 +217,7 @@ void mpi_comm_split__(int* comm, int* color, int* key, int* comm_out, int* ierr) } } -void mpi_group_incl__(int* group, int* n, int* ranks, int* group_out, int* ierr) { +void mpi_group_incl_(int* group, int* n, int* ranks, int* group_out, int* ierr) { MPI_Group tmp; *ierr = MPI_Group_incl(get_group(*group), *n, ranks, &tmp); @@ -226,7 +226,7 @@ void mpi_group_incl__(int* group, int* n, int* ranks, int* group_out, int* ierr) } } -void mpi_comm_group__(int* comm, int* group_out, int* ierr) { +void mpi_comm_group_(int* comm, int* group_out, int* ierr) { MPI_Group tmp; *ierr = MPI_Comm_group(get_comm(*comm), &tmp); @@ -236,11 +236,11 @@ void mpi_comm_group__(int* comm, int* group_out, int* ierr) { } -void mpi_initialized__(int* flag, int* ierr){ +void mpi_initialized_(int* flag, int* ierr){ *ierr = MPI_Initialized(flag); } -void mpi_send_init__(void *buf, int* count, int* datatype, int* dst, int* tag, +void mpi_send_init_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr) { MPI_Request req; @@ -251,7 +251,7 @@ void mpi_send_init__(void *buf, int* count, int* datatype, int* dst, int* tag, } } -void mpi_isend__(void *buf, int* count, int* datatype, int* dst, +void mpi_isend_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr) { MPI_Request req; @@ -262,7 +262,7 @@ void mpi_isend__(void *buf, int* count, int* datatype, int* dst, } } -void mpi_irsend__(void *buf, int* count, int* datatype, int* dst, +void mpi_irsend_(void *buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* request, int* ierr) { MPI_Request req; @@ -273,19 +273,19 @@ void mpi_irsend__(void *buf, int* count, int* datatype, int* dst, } } -void mpi_send__(void* buf, int* count, int* datatype, int* dst, +void mpi_send_(void* buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* ierr) { *ierr = MPI_Send(buf, *count, get_datatype(*datatype), *dst, *tag, get_comm(*comm)); } -void mpi_rsend__(void* buf, int* count, int* datatype, int* dst, +void mpi_rsend_(void* buf, int* count, int* datatype, int* dst, int* tag, int* comm, int* ierr) { *ierr = MPI_Rsend(buf, *count, get_datatype(*datatype), *dst, *tag, get_comm(*comm)); } -void mpi_sendrecv__(void* sendbuf, int* sendcount, int* sendtype, int* dst, +void mpi_sendrecv_(void* sendbuf, int* sendcount, int* sendtype, int* dst, int* sendtag, void *recvbuf, int* recvcount, int* recvtype, int* src, int* recvtag, int* comm, MPI_Status* status, int* ierr) { @@ -294,7 +294,7 @@ void mpi_sendrecv__(void* sendbuf, int* sendcount, int* sendtype, int* dst, get_comm(*comm), status); } -void mpi_recv_init__(void *buf, int* count, int* datatype, int* src, int* tag, +void mpi_recv_init_(void *buf, int* count, int* datatype, int* src, int* tag, int* comm, int* request, int* ierr) { MPI_Request req; @@ -305,7 +305,7 @@ void mpi_recv_init__(void *buf, int* count, int* datatype, int* src, int* tag, } } -void mpi_irecv__(void *buf, int* count, int* datatype, int* src, int* tag, +void mpi_irecv_(void *buf, int* count, int* datatype, int* src, int* tag, int* comm, int* request, int* ierr) { MPI_Request req; @@ -316,19 +316,19 @@ void mpi_irecv__(void *buf, int* count, int* datatype, int* src, int* tag, } } -void mpi_recv__(void* buf, int* count, int* datatype, int* src, +void mpi_recv_(void* buf, int* count, int* datatype, int* src, int* tag, int* comm, MPI_Status* status, int* ierr) { *ierr = MPI_Recv(buf, *count, get_datatype(*datatype), *src, *tag, get_comm(*comm), status); } -void mpi_start__(int* request, int* ierr) { +void mpi_start_(int* request, int* ierr) { MPI_Request req = find_request(*request); *ierr = MPI_Start(&req); } -void mpi_startall__(int* count, int* requests, int* ierr) { +void mpi_startall_(int* count, int* requests, int* ierr) { MPI_Request* reqs; int i; @@ -340,13 +340,13 @@ void mpi_startall__(int* count, int* requests, int* ierr) { free(reqs); } -void mpi_wait__(int* request, MPI_Status* status, int* ierr) { +void mpi_wait_(int* request, MPI_Status* status, int* ierr) { MPI_Request req = find_request(*request); *ierr = MPI_Wait(&req, status); } -void mpi_waitany__(int* count, int* requests, int* index, MPI_Status* status, int* ierr) { +void mpi_waitany_(int* count, int* requests, int* index, MPI_Status* status, int* ierr) { MPI_Request* reqs; int i; @@ -358,7 +358,7 @@ void mpi_waitany__(int* count, int* requests, int* index, MPI_Status* status, in free(reqs); } -void mpi_waitall__(int* count, int* requests, MPI_Status* status, int* ierr) { +void mpi_waitall_(int* count, int* requests, MPI_Status* status, int* ierr) { MPI_Request* reqs; int i; @@ -370,33 +370,33 @@ void mpi_waitall__(int* count, int* requests, MPI_Status* status, int* ierr) { free(reqs); } -void mpi_barrier__(int* comm, int* ierr) { +void mpi_barrier_(int* comm, int* ierr) { *ierr = MPI_Barrier(get_comm(*comm)); } -void mpi_bcast__(void *buf, int* count, int* datatype, int* root, int* comm, int* ierr) { +void mpi_bcast_(void *buf, int* count, int* datatype, int* root, int* comm, int* ierr) { *ierr = MPI_Bcast(buf, *count, get_datatype(*datatype), *root, get_comm(*comm)); } -void mpi_reduce__(void* sendbuf, void* recvbuf, int* count, +void mpi_reduce_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* root, int* comm, int* ierr) { *ierr = MPI_Reduce(sendbuf, recvbuf, *count, get_datatype(*datatype), get_op(*op), *root, get_comm(*comm)); } -void mpi_allreduce__(void* sendbuf, void* recvbuf, int* count, int* datatype, +void mpi_allreduce_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* comm, int* ierr) { *ierr = MPI_Allreduce(sendbuf, recvbuf, *count, get_datatype(*datatype), get_op(*op), get_comm(*comm)); } -void mpi_reduce_scatter__(void* sendbuf, void* recvbuf, int* recvcounts, int* datatype, +void mpi_reduce_scatter_(void* sendbuf, void* recvbuf, int* recvcounts, int* datatype, int* op, int* comm, int* ierr) { *ierr = MPI_Reduce_scatter(sendbuf, recvbuf, recvcounts, get_datatype(*datatype), get_op(*op), get_comm(*comm)); } -void mpi_scatter__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_scatter_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr) { *ierr = MPI_Scatter(sendbuf, *sendcount, get_datatype(*sendtype), @@ -404,66 +404,66 @@ void mpi_scatter__(void* sendbuf, int* sendcount, int* sendtype, } -void mpi_scatterv__(void* sendbuf, int* sendcounts, int* displs, int* sendtype, +void mpi_scatterv_(void* sendbuf, int* sendcounts, int* displs, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr) { *ierr = MPI_Scatterv(sendbuf, sendcounts, displs, get_datatype(*sendtype), recvbuf, *recvcount, get_datatype(*recvtype), *root, get_comm(*comm)); } -void mpi_gather__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_gather_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* root, int* comm, int* ierr) { *ierr = MPI_Gather(sendbuf, *sendcount, get_datatype(*sendtype), recvbuf, *recvcount, get_datatype(*recvtype), *root, get_comm(*comm)); } -void mpi_gatherv__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_gatherv_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcounts, int* displs, int* recvtype, int* root, int* comm, int* ierr) { *ierr = MPI_Gatherv(sendbuf, *sendcount, get_datatype(*sendtype), recvbuf, recvcounts, displs, get_datatype(*recvtype), *root, get_comm(*comm)); } -void mpi_allgather__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_allgather_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* comm, int* ierr) { *ierr = MPI_Allgather(sendbuf, *sendcount, get_datatype(*sendtype), recvbuf, *recvcount, get_datatype(*recvtype), get_comm(*comm)); } -void mpi_allgatherv__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_allgatherv_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcounts,int* displs, int* recvtype, int* comm, int* ierr) { *ierr = MPI_Allgatherv(sendbuf, *sendcount, get_datatype(*sendtype), recvbuf, recvcounts, displs, get_datatype(*recvtype), get_comm(*comm)); } -void mpi_scan__(void* sendbuf, void* recvbuf, int* count, int* datatype, +void mpi_scan_(void* sendbuf, void* recvbuf, int* count, int* datatype, int* op, int* comm, int* ierr) { *ierr = MPI_Scan(sendbuf, recvbuf, *count, get_datatype(*datatype), get_op(*op), get_comm(*comm)); } -void mpi_alltoall__(void* sendbuf, int* sendcount, int* sendtype, +void mpi_alltoall_(void* sendbuf, int* sendcount, int* sendtype, void* recvbuf, int* recvcount, int* recvtype, int* comm, int* ierr) { *ierr = MPI_Alltoall(sendbuf, *sendcount, get_datatype(*sendtype), recvbuf, *recvcount, get_datatype(*recvtype), get_comm(*comm)); } -void mpi_alltoallv__(void* sendbuf, int* sendcounts, int* senddisps, int* sendtype, +void mpi_alltoallv_(void* sendbuf, int* sendcounts, int* senddisps, int* sendtype, void* recvbuf, int* recvcounts, int* recvdisps, int* recvtype, int* comm, int* ierr) { *ierr = MPI_Alltoallv(sendbuf, sendcounts, senddisps, get_datatype(*sendtype), recvbuf, recvcounts, recvdisps, get_datatype(*recvtype), get_comm(*comm)); } -void mpi_test__ (int * request, int *flag, MPI_Status * status, int* ierr){ +void mpi_test_ (int * request, int *flag, MPI_Status * status, int* ierr){ MPI_Request req = find_request(*request); *ierr= MPI_Test(&req, flag, status); } -void mpi_testall__ (int* count, int * requests, int *flag, MPI_Status * statuses, int* ierr){ +void mpi_testall_ (int* count, int * requests, int *flag, MPI_Status * statuses, int* ierr){ MPI_Request* reqs; int i; reqs = xbt_new(MPI_Request, *count); @@ -474,28 +474,28 @@ void mpi_testall__ (int* count, int * requests, int *flag, MPI_Status * statuse } -void mpi_get_processor_name__(char *name, int *resultlen, int* ierr){ +void mpi_get_processor_name_(char *name, int *resultlen, int* ierr){ *ierr = MPI_Get_processor_name(name, resultlen); } -void mpi_get_count__(MPI_Status * status, int* datatype, int *count, int* ierr){ +void mpi_get_count_(MPI_Status * status, int* datatype, int *count, int* ierr){ *ierr = MPI_Get_count(status, get_datatype(*datatype), count); } -void mpi_attr_get__(int* comm, int* keyval, void* attr_value, int* flag, int* ierr ){ +void mpi_attr_get_(int* comm, int* keyval, void* attr_value, int* flag, int* ierr ){ *ierr = MPI_Attr_get(get_comm(*comm), *keyval, attr_value, flag); } -void mpi_type_extent__(int* datatype, MPI_Aint * extent, int* ierr){ +void mpi_type_extent_(int* datatype, MPI_Aint * extent, int* ierr){ *ierr= MPI_Type_extent(get_datatype(*datatype), extent); } -void mpi_type_commit__(int* datatype, int* ierr){ +void mpi_type_commit_(int* datatype, int* ierr){ MPI_Datatype tmp= get_datatype(*datatype); *ierr= MPI_Type_commit(&tmp); } -void mpi_type_vector__(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr){ +void mpi_type_vector_(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr){ MPI_Datatype tmp; *ierr= MPI_Type_vector(*count, *blocklen, *stride, get_datatype(*old_type), &tmp); if(*ierr == MPI_SUCCESS) { @@ -503,7 +503,7 @@ void mpi_type_vector__(int* count, int* blocklen, int* stride, int* old_type, in } } -void mpi_type_create_vector__(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr){ +void mpi_type_create_vector_(int* count, int* blocklen, int* stride, int* old_type, int* newtype, int* ierr){ MPI_Datatype tmp; *ierr= MPI_Type_vector(*count, *blocklen, *stride, get_datatype(*old_type), &tmp); if(*ierr == MPI_SUCCESS) { @@ -511,7 +511,7 @@ void mpi_type_create_vector__(int* count, int* blocklen, int* stride, int* old_t } } -void mpi_type_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr){ +void mpi_type_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr){ MPI_Datatype tmp; *ierr= MPI_Type_hvector (*count, *blocklen, *stride, get_datatype(*old_type), &tmp); if(*ierr == MPI_SUCCESS) { @@ -519,7 +519,7 @@ void mpi_type_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* old_ty } } -void mpi_type_create_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr){ +void mpi_type_create_hvector_(int* count, int* blocklen, MPI_Aint* stride, int* old_type, int* newtype, int* ierr){ MPI_Datatype tmp; *ierr= MPI_Type_hvector(*count, *blocklen, *stride, get_datatype(*old_type), &tmp); if(*ierr == MPI_SUCCESS) { @@ -527,7 +527,7 @@ void mpi_type_create_hvector__(int* count, int* blocklen, MPI_Aint* stride, int* } } -void mpi_type_free__(int* datatype, int* ierr){ +void mpi_type_free_(int* datatype, int* ierr){ MPI_Datatype tmp= get_datatype(*datatype); *ierr= MPI_Type_free (&tmp); if(*ierr == MPI_SUCCESS) { @@ -535,48 +535,48 @@ void mpi_type_free__(int* datatype, int* ierr){ } } -void mpi_type_ub__(int* datatype, MPI_Aint * disp, int* ierr){ +void mpi_type_ub_(int* datatype, MPI_Aint * disp, int* ierr){ *ierr= MPI_Type_ub(get_datatype(*datatype), disp); } -void mpi_type_lb__(int* datatype, MPI_Aint * extent, int* ierr){ +void mpi_type_lb_(int* datatype, MPI_Aint * extent, int* ierr){ *ierr= MPI_Type_extent(get_datatype(*datatype), extent); } -void mpi_type_size__(int* datatype, int *size, int* ierr) +void mpi_type_size_(int* datatype, int *size, int* ierr) { *ierr = MPI_Type_size(get_datatype(*datatype), size); } -void mpi_error_string__(int* errorcode, char* string, int* resultlen, int* ierr){ +void mpi_error_string_(int* errorcode, char* string, int* resultlen, int* ierr){ *ierr = MPI_Error_string(*errorcode, string, resultlen); } -void mpi_win_fence__( int* assert, int* win, int* ierr){ +void mpi_win_fence_( int* assert, int* win, int* ierr){ *ierr = MPI_Win_fence(* assert, *(MPI_Win*)win); } -void mpi_win_free__( int* win, int* ierr){ +void mpi_win_free_( int* win, int* ierr){ *ierr = MPI_Win_free( (MPI_Win*)win); } -void mpi_win_create__( int *base, MPI_Aint* size, int* disp_unit, int* info, int* comm, int *win, int* ierr){ +void mpi_win_create_( int *base, MPI_Aint* size, int* disp_unit, int* info, int* comm, int *win, int* ierr){ *ierr = MPI_Win_create( (void*)base, *size, *disp_unit, *(MPI_Info*)info, get_comm(*comm),(MPI_Win*)win); } -void mpi_info_create__( int *info, int* ierr){ +void mpi_info_create_( int *info, int* ierr){ *ierr = MPI_Info_create( (MPI_Info *)info); } -void mpi_info_set__( int *info, char *key, char *value, int* ierr){ +void mpi_info_set_( int *info, char *key, char *value, int* ierr){ *ierr = MPI_Info_set( (MPI_Info *)info, key, value); } -void mpi_info_free__(int* info, int* ierr){ +void mpi_info_free_(int* info, int* ierr){ *ierr = MPI_Info_free((MPI_Info *) info); } -void mpi_get__( int *origin_addr, int* origin_count, int* origin_datatype, int *target_rank, +void mpi_get_( int *origin_addr, int* origin_count, int* origin_datatype, int *target_rank, MPI_Aint* target_disp, int *target_count, int* target_datatype, int* win, int* ierr){ *ierr = MPI_Get( (void*)origin_addr,*origin_count, get_datatype(*origin_datatype),*target_rank, *target_disp, *target_count,get_datatype(*target_datatype), *(MPI_Win *)win); diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index c547decdad..c29b2b630d 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -292,23 +292,23 @@ int __attribute__((weak)) xargc; char** __attribute__((weak)) xargv; #ifndef WIN32 -void __attribute__((weak)) user_main__(){ +void __attribute__((weak)) user_main_(){ xbt_die("Should not be in this smpi_simulated_main"); return; } -int __attribute__((weak)) smpi_simulated_main__(int argc, char** argv) { +int __attribute__((weak)) smpi_simulated_main_(int argc, char** argv) { smpi_process_init(&argc, &argv); - user_main__(); + user_main_(); //xbt_die("Should not be in this smpi_simulated_main"); return 0; } int __attribute__((weak)) main(int argc, char** argv) { - return smpi_main(smpi_simulated_main__,argc,argv); + return smpi_main(smpi_simulated_main_,argc,argv); } -int __attribute__((weak)) MAIN__(){ - return smpi_main(smpi_simulated_main__,xargc, xargv); +int __attribute__((weak)) MAIN_(){ + return smpi_main(smpi_simulated_main_,xargc, xargv); }; #endif