From e5bf00b7dff460958a845254a9eb39ccece34ff6 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Mon, 4 Nov 2024 11:03:41 +0100 Subject: [PATCH] Add fix for mpi4py 4 --- pymusic/mpi_compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymusic/mpi_compat.h b/pymusic/mpi_compat.h index 6b9f4b4..153163d 100644 --- a/pymusic/mpi_compat.h +++ b/pymusic/mpi_compat.h @@ -4,3 +4,8 @@ typedef void *PyMPI_MPI_Message; #define MPI_Message PyMPI_MPI_Message #endif + +#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session) +typedef void *PyMPI_MPI_Session; +#define MPI_Session PyMPI_MPI_Session +#endif