Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Increase the maximum number of predifined datatypes to support MPI_Count

  • Loading branch information...
commit e158aa152d122e554b89498f5a71284ce1361a99 1 parent 9638ef1
hjelmn authored
View
2  ompi/datatype/ompi_datatype.h
@@ -59,7 +59,7 @@ BEGIN_C_DECLS
#define OMPI_DATATYPE_FLAG_DATA_FORTRAN 0xC000
#define OMPI_DATATYPE_FLAG_DATA_LANGUAGE 0xC000
-#define OMPI_DATATYPE_MAX_PREDEFINED 45
+#define OMPI_DATATYPE_MAX_PREDEFINED 47
#if OMPI_DATATYPE_MAX_PREDEFINED > OPAL_DATATYPE_MAX_SUPPORTED
#error Need to increase the number of supported dataypes by OPAL (value OPAL_DATATYPE_MAX_SUPPORTED).
View
7 ompi/datatype/ompi_datatype_internal.h
@@ -102,6 +102,13 @@
#define OMPI_DATATYPE_MPI_MAX_PREDEFINED (OMPI_DATATYPE_MPI_UNAVAILABLE+1)
/*
+ * Ensure we can support the predefined datatypes.
+ */
+#if OMPI_DATATYPE_MAX_PREDEFINED < OMPI_DATATYPE_MPI_UNAVAILABLE
+#error OMPI_DATATYPE_MAX_PREDEFINED should be updated to the value of OMPI_DATATYPE_MPI_UNAVAILABLE
+#endif
+
+/*
* Mapped types. The following types have basic equivalents in OPAL. Instead
* of being redefined as independent types, they will be made synonyms to
* the most basic type.
View
2  opal/datatype/opal_datatype.h
@@ -56,7 +56,7 @@ BEGIN_C_DECLS
*
* XXX TODO Adapt to whatever the OMPI-layer needs
*/
-#define OPAL_DATATYPE_MAX_SUPPORTED 46
+#define OPAL_DATATYPE_MAX_SUPPORTED 47
/* flags for the datatypes. */
Please sign in to comment.
Something went wrong with that request. Please try again.