Skip to content
Snippets Groups Projects
Commit 5a0e7729 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Add DATATYPE_{FLT|INT32} to MPI serialization.

parent 92f7c976
No related branches found
No related tags found
No related merge requests found
......@@ -28,14 +28,17 @@ struct
#ifdef CDI_DT_MATCH_NEEDED
{ CDI_DATATYPE_INT8, MPI_SIGNED_CHAR },
{ CDI_DATATYPE_INT16, MPI_SHORT },
{ CDI_DATATYPE_INT32, MPI_INT },
{ CDI_DATATYPE_UINT32, MPI_INT },
#else
{ CDI_DATATYPE_INT8, MPI_INT8_T },
{ CDI_DATATYPE_INT16, MPI_INT16_T },
{ CDI_DATATYPE_INT32, MPI_INT32_T },
{ CDI_DATATYPE_UINT32, MPI_UINT32_T },
#endif
{ CDI_DATATYPE_INT, MPI_INT },
{ CDI_DATATYPE_FLT64, MPI_DOUBLE },
{ CDI_DATATYPE_FLT, MPI_DOUBLE },
{ CDI_DATATYPE_TXT, MPI_CHAR },
{ CDI_DATATYPE_UCHAR, MPI_UNSIGNED_CHAR },
{ CDI_DATATYPE_LONG, MPI_LONG },
......@@ -72,6 +75,8 @@ setupDtDict()
(int)sizeof (int8_t));
dtDictFixMPIType(lookupDt(CDI_DATATYPE_INT16), MPI_TYPECLASS_INTEGER,
(int)sizeof (int16_t));
dtDictFixMPIType(lookupDt(CDI_DATATYPE_INT32), MPI_TYPECLASS_INTEGER,
(int)sizeof (int32_t));
dtDictFixMPIType(lookupDt(CDI_DATATYPE_UINT32), MPI_TYPECLASS_INTEGER,
(int)sizeof (uint32_t));
dtDictMatchComplete = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment