Mpi4py

Latest version: v4.0.3

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

3.1.4

==========================

.. warning:: This is the last release supporting Python 2.

* Rebuild C sources with Cython 0.29.32 to support Python 3.11.

* Fix contiguity check for DLPack and CAI buffers.

* Workaround build failures with setuptools v60.

3.1.3

==========================

.. warning:: This is the last release supporting Python 2.

* Add missing support for `MPI.BOTTOM` to generalized all-to-all collectives.

3.1.2

==========================

.. warning:: This is the last release supporting Python 2.

* `mpi4py.futures`: Add `_max_workers` property to `MPIPoolExecutor`.

* `mpi4py.util.dtlib`: Fix computation of alignment for predefined datatypes.

* `mpi4py.util.pkl5`: Fix deadlock when using ``ssend()`` + ``mprobe()``.

* `mpi4py.util.pkl5`: Add environment variable `MPI4PY_PICKLE_THRESHOLD`.

* `mpi4py.rc`: Interpret ``"y"`` and ``"n"`` strings as boolean values.

* Fix/add typemap/typestr for `MPI.WCHAR`/`MPI.COUNT` datatypes.

* Minor fixes and additions to documentation.

* Minor fixes to typing support.

* Support for local version identifier (PEP-440).

3.1.1

==========================

.. warning:: This is the last release supporting Python 2.

* Fix typo in Requires-Python package metadata.

* Regenerate C sources with Cython 0.29.24.

3.1.0

==========================

.. warning:: This is the last release supporting Python 2.

* New features:

+ `mpi4py.util`: New package collecting miscellaneous utilities.

* Enhancements:

+ Add pickle-based ``Request.waitsome()`` and ``Request.testsome()``.

+ Add lowercase methods ``Request.get_status()`` and ``Request.cancel()``.

+ Support for passing Python GPU arrays compliant with the `DLPack`_ data
interchange mechanism (`link <DIM_>`_) and the ``__cuda_array_interface__``
(CAI) standard (`link <CAI_>`_) to uppercase methods. This support requires
that mpi4py is built against `CUDA-aware MPI <CAM_>`_ implementations. This
feature is currently experimental and subject to future changes.

+ `mpi4py.futures`: Add support for initializers and canceling futures at shutdown.
Environment variables names now follow the pattern ``MPI4PY_FUTURES_*``, the
previous ``MPI4PY_*`` names are deprecated.

+ Add type annotations to Cython code. The first line of the docstring of functions
and methods displays a signature including type annotations.

+ Add companion stub files to support type checkers.

+ Support for weak references.

* Miscellaneous:

+ Add a new mpi4py publication (`link <DOI_>`_) to the citation listing.

.. _DLPack: https://github.com/dmlc/dlpack
.. _DIM: https://data-apis.org/array-api/latest/design_topics/data_interchange.html
.. _CAI: https://numba.readthedocs.io/en/stable/cuda/cuda_array_interface.html
.. _CAM: https://developer.nvidia.com/blog/introduction-cuda-aware-mpi/
.. _DOI: https://doi.org/10.1109/MCSE.2021.3083216

3.0.3

==========================

* Regenerate Cython wrappers to support Python 3.8.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.