| 1 |
From e5bf00b7dff460958a845254a9eb39ccece34ff6 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Goran Jelic-Cizmek <[email protected]> |
| 3 |
Date: Mon, 4 Nov 2024 11:03:41 +0100 |
| 4 |
Subject: [PATCH] Add fix for mpi4py 4 |
| 5 |
|
| 6 |
Bug-Debian: https://bugs.debian.org/1084303 |
| 7 |
--- |
| 8 |
pymusic/mpi_compat.h | 5 +++++ |
| 9 |
1 file changed, 5 insertions(+) |
| 10 |
|
| 11 |
diff --git a/pymusic/mpi_compat.h b/pymusic/mpi_compat.h |
| 12 |
index 6b9f4b4..153163d 100644 |
| 13 |
--- a/pymusic/mpi_compat.h |
| 14 |
+++ b/pymusic/mpi_compat.h |
| 15 |
@@ -4,3 +4,8 @@ |
| 16 |
typedef void *PyMPI_MPI_Message; |
| 17 |
#define MPI_Message PyMPI_MPI_Message |
| 18 |
#endif |
| 19 |
+ |
| 20 |
+#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session) |
| 21 |
+typedef void *PyMPI_MPI_Session; |
| 22 |
+#define MPI_Session PyMPI_MPI_Session |
| 23 |
+#endif |