From b8499b4e69b3f71613c9b57f46a46a4120709a52 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 28 Sep 2012 10:01:36 +0200 Subject: [PATCH] add support of a function (necessary to conceptual) --- include/smpi/smpi.h | 5 +++++ src/smpi/smpi_mpi.c | 5 +++++ src/smpi/smpi_pmpi.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 822c1a03c3..b22270346f 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -58,6 +58,10 @@ SG_BEGIN_DECL() #define MPI_UNEQUAL 2 #define MPI_CONGRUENT 3 #define MPI_WTIME_IS_GLOBAL 1 +#define MPI_TAG_UB 1000000 +#define MPI_HOST 0 +#define MPI_IO 0 + typedef ptrdiff_t MPI_Aint; typedef long long MPI_Offset; @@ -409,6 +413,7 @@ MPI_CALL(XBT_PUBLIC(int), MPI_Buffer_attach, (void* buffer, int size)); MPI_CALL(XBT_PUBLIC(int), MPI_Buffer_detach, (void* buffer, int* size)); MPI_CALL(XBT_PUBLIC(int), MPI_Testsome, (int incount, MPI_Request* requests, int* outcount, int* indices, MPI_Status* statuses)); MPI_CALL(XBT_PUBLIC(int), MPI_Comm_test_inter, (MPI_Comm comm, int* flag)); +MPI_CALL(XBT_PUBLIC(int), MPI_Comm_get_attr, (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag)); MPI_CALL(XBT_PUBLIC(int), MPI_Unpack, (void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm)); MPI_CALL(XBT_PUBLIC(int), MPI_Ssend, (void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm)); MPI_CALL(XBT_PUBLIC(int), MPI_Ssend_init, (void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request* request)); diff --git a/src/smpi/smpi_mpi.c b/src/smpi/smpi_mpi.c index 483bbf5bd1..505d92d847 100644 --- a/src/smpi/smpi_mpi.c +++ b/src/smpi/smpi_mpi.c @@ -169,6 +169,11 @@ int MPI_Comm_size(MPI_Comm comm, int *size) return PMPI_Comm_size(comm, size); } +int MPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag) +{ + return PMPI_Comm_get_attr (comm, comm_keyval, attribute_val, flag); +} + int MPI_Comm_get_name (MPI_Comm comm, char* name, int* len) { return PMPI_Comm_get_name(comm, name, len); diff --git a/src/smpi/smpi_pmpi.c b/src/smpi/smpi_pmpi.c index d730222bf8..ebaa2f161a 100644 --- a/src/smpi/smpi_pmpi.c +++ b/src/smpi/smpi_pmpi.c @@ -2032,6 +2032,11 @@ int PMPI_Comm_test_inter(MPI_Comm comm, int* flag) { return not_yet_implemented(); } +int PMPI_Comm_get_attr (MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag) +{ + return not_yet_implemented(); +} + int PMPI_Unpack(void* inbuf, int insize, int* position, void* outbuf, int outcount, MPI_Datatype type, MPI_Comm comm) { return not_yet_implemented(); } -- 2.20.1