File: mpi4py_fix.patch

package info (click to toggle)
adios 1.13.1-31
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,779; python: 7,648; xml: 3,793; makefile: 2,996; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (32 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (3)
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