From 922a2ddb72ecf36a0de9689711c8def5885f8b71 Mon Sep 17 00:00:00 2001 From: genaud Date: Mon, 13 Jul 2009 22:02:42 +0000 Subject: [PATCH] MPI_Sendrecv git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6502 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/smpi/smpi.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index fbbbe9f287..d4e4feea3b 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -59,6 +59,7 @@ SG_BEGIN_DECL() smpi_mpi_op_t mpi_land; smpi_mpi_op_t mpi_sum; + smpi_mpi_op_t mpi_prod; smpi_mpi_op_t mpi_min; smpi_mpi_op_t mpi_max; @@ -79,6 +80,7 @@ SG_BEGIN_DECL() #define MPI_LAND (smpi_mpi_global->mpi_land) #define MPI_SUM (smpi_mpi_global->mpi_sum) +#define MPI_PROD (smpi_mpi_global->mpi_prod) #define MPI_MIN (smpi_mpi_global->mpi_min) #define MPI_MAX (smpi_mpi_global->mpi_max) @@ -94,6 +96,7 @@ SG_BEGIN_DECL() #define MPI_Recv(a, b, c, d, e, f, g) SMPI_MPI_Recv(a, b, c, d, e, f, g) #define MPI_Isend(a, b, c, d, e, f, g) SMPI_MPI_Isend(a, b, c, d, e, f, g) #define MPI_Send(a, b, c, d, e, f) SMPI_MPI_Send(a, b, c, d, e, f) +#define MPI_Sendrecv( a, b, c, d, e, f, g, h, i, j, k, l) SMPI_MPI_Sendrecv(a, b, c, d, e, f, g, h, i, j, k, l) #define MPI_Bcast(a, b, c, d, e) SMPI_MPI_Bcast(a, b, c, d, e) #define MPI_Wait(a, b) SMPI_MPI_Wait(a, b) #define MPI_Waitall(a, b, c) SMPI_MPI_Waitall(a, b, c) @@ -103,6 +106,7 @@ SG_BEGIN_DECL() #define MPI_Reduce( a, b, c, d, e, f, g) SMPI_MPI_Reduce( a, b, c, d, e, f, g) #define MPI_Allreduce( a, b, c, d, e, f) SMPI_MPI_Allreduce( a, b, c, d, e, f) #define MPI_Scatter( a, b, c, d, e, f, g, h ) SMPI_MPI_Scatter( a, b, c, d, e, f, g, h) +#define MPI_Alltoall( a, b, c, d, e, f, g ) SMPI_MPI_Alltoall( a, b, c, d, e, f, g) // SMPI Functions XBT_PUBLIC(int) SMPI_MPI_Init(int *argc, char ***argv); @@ -123,6 +127,11 @@ XBT_PUBLIC(int) SMPI_MPI_Isend(void *buf, int count, MPI_Datatype datatype, MPI_Request * request); XBT_PUBLIC(int) SMPI_MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm); + +XBT_PUBLIC(int) SMPI_MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype sendtype, int dest, int sendtag, + void *recvbuf, int recvcount, MPI_Datatype recvtype, int source, int recvtag, + MPI_Comm comm, MPI_Status *status); + XBT_PUBLIC(int) SMPI_MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm); XBT_PUBLIC(int) SMPI_MPI_Wait(MPI_Request * request, MPI_Status * status); @@ -143,6 +152,9 @@ XBT_PUBLIC(int) SMPI_MPI_Allreduce(void *sendbuf, void *recvbuf, int count, XBT_PUBLIC(int) SMPI_MPI_Scatter(void *sendbuf, int sendcount, MPI_Datatype datatype, void *recvbuf, int recvcount, MPI_Datatype recvtype,int root, MPI_Comm comm); +XBT_PUBLIC(int) SMPI_MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype datatype, + void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm); + // smpi functions XBT_IMPORT_NO_EXPORT(int) smpi_simulated_main(int argc, char **argv); XBT_PUBLIC(unsigned int) smpi_sleep(unsigned int); -- 2.20.1