Skip to content

Commit 13f3123

Browse files
authored
Merge pull request #81 from JCGoran/fix_mpi4py
Add fix for mpi4py version 4
2 parents abb0304 + e5bf00b commit 13f3123

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pymusic/mpi_compat.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
typedef void *PyMPI_MPI_Message;
55
#define MPI_Message PyMPI_MPI_Message
66
#endif
7+
8+
#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session)
9+
typedef void *PyMPI_MPI_Session;
10+
#define MPI_Session PyMPI_MPI_Session
11+
#endif

0 commit comments

Comments
 (0)