Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add MPI_PACKED datatype (for compilation only, MPI_Pack and Unpack functions are...
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 23 Oct 2012 08:04:57 +0000 (10:04 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Tue, 23 Oct 2012 17:07:26 +0000 (19:07 +0200)
include/smpi/smpi.h
src/smpi/smpi_mpi_dt.c

index b909f28..50e61d1 100644 (file)
@@ -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));
index d277579..5e22c33 100644 (file)
@@ -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*);