diff --git a/.github/workflows/miniconda.yml b/.github/workflows/miniconda.yml index b32c63562..23e7e1fc4 100644 --- a/.github/workflows/miniconda.yml +++ b/.github/workflows/miniconda.yml @@ -78,7 +78,7 @@ jobs: export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" which mpirun mpirun --version - mpirun -np 4 python mpi_example.py + mpirun -np 4 --oversubscribe python mpi_example.py if [ $? -ne 0 ] ; then echo "hdf5 mpi test failed!" exit 1 diff --git a/include/mpi-compat.h b/include/mpi-compat.h index 367c58a7d..9a604f851 100644 --- a/include/mpi-compat.h +++ b/include/mpi-compat.h @@ -11,4 +11,9 @@ 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 + #endif/*MPI_COMPAT_H*/