From b2208a5ab266b760d9b1b26198b38f2b0ade2e26 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 23 Oct 2012 10:04:57 +0200 Subject: [PATCH] add MPI_PACKED datatype (for compilation only, MPI_Pack and Unpack functions are still not implemented ) --- include/smpi/smpi.h | 1 + src/smpi/smpi_mpi_dt.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index b909f28016..50e61d152b 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -391,6 +391,7 @@ typedef int MPI_Copy_function(MPI_Comm oldcomm, int keyval, void* extra_state, v void* attribute_val_out, int* flag); typedef int MPI_Delete_function(MPI_Comm comm, int keyval, void* attribute_val, void* extra_state); +XBT_PUBLIC(MPI_Datatype) MPI_PACKED; MPI_CALL(XBT_PUBLIC(int), MPI_Pack_size, (int incount, MPI_Datatype datatype, MPI_Comm comm, int* size)); MPI_CALL(XBT_PUBLIC(int), MPI_Cart_coords, (MPI_Comm comm, int rank, int maxdims, int* coords)); MPI_CALL(XBT_PUBLIC(int), MPI_Cart_create, (MPI_Comm comm_old, int ndims, int* dims, int* periods, int reorder, MPI_Comm* comm_cart)); diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index d277579752..5e22c33a20 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -105,6 +105,7 @@ CREATE_MPI_DATATYPE(MPI_LONG_DOUBLE_INT, long_double_int); CREATE_MPI_DATATYPE_NULL(MPI_UB); CREATE_MPI_DATATYPE_NULL(MPI_LB); +CREATE_MPI_DATATYPE_NULL(MPI_PACKED); // Internal use only CREATE_MPI_DATATYPE(MPI_PTR, void*); -- 2.30.2