1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fix for missing MPI_Message in MPI < 3
Last-Updated: 2015-10-29
Forwarded: no
Index: adios-1.13.0/wrappers/numpy/compat.h
===================================================================
--- /dev/null
+++ adios-1.13.0/wrappers/numpy/compat.h
@@ -0,0 +1,9 @@
+/* Added to fix missing MPI_Message in older openmpi on Debian, etc
+ * Added mckinstry@debian.org, 2014-05-19
+ * This then included in adios.pxd
+ */
+
+#if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message)
+typedef void *PyMPI_MPI_Message;
+#define MPI_Message PyMPI_MPI_Message
+#endif
Index: adios-1.13.0/wrappers/numpy/adios_mpi.pyx
===================================================================
--- adios-1.13.0.orig/wrappers/numpy/adios_mpi.pyx
+++ adios-1.13.0/wrappers/numpy/adios_mpi.pyx
@@ -16,6 +16,8 @@ cimport numpy as np
import mpi4py.MPI as MPI
cimport mpi4py.MPI as MPI
+cdef extern from 'compat.h': pass
+
import cython
cimport cython
|