Skip to content
Snippets Groups Projects
Commit bd7b5dfd authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Move array to text segment when possible.

parent 95125d29
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -11,13 +11,20 @@
#include "pio_serialize.h"
#include "pio_util.h"
static struct
#if MPI_VERSION == 1 || (MPI_VERSION == 2 && MPI_SUBVERSION < 2)
#define CDI_DT_MATCH_NEEDED 1
#endif
static
#ifndef CDI_DT_MATCH_NEEDED
const
#endif
struct
{
int cdidt;
MPI_Datatype mpidt;
} dtDict[] = {
#if MPI_VERSION == 1 || (MPI_VERSION == 2 && MPI_SUBVERSION < 2)
#define CDI_DT_MATCH_NEEDED 1
#ifdef CDI_DT_MATCH_NEEDED
{ CDI_DATATYPE_INT8, MPI_SIGNED_CHAR }, { CDI_DATATYPE_INT16, MPI_SHORT }, { CDI_DATATYPE_UINT32, MPI_INT },
#else
{ CDI_DATATYPE_INT8, MPI_INT8_T }, { CDI_DATATYPE_INT16, MPI_INT16_T }, { CDI_DATATYPE_UINT32, MPI_UINT32_T },
......
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