Mpi4py

Latest version: v4.0.1

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

Scan your dependencies

Page 3 of 4

2.0.0

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

* Support for MPI-3 features.

+ Matched probes and receives.
+ Nonblocking collectives.
+ Neighborhood collectives.
+ New communicator constructors.
+ Request-based RMA operations.
+ New RMA communication and synchronisation calls.
+ New window constructors.
+ New datatype constructor.
+ New C++ boolean and floating complex datatypes.

* Support for MPI-2 features not included in previous releases.

+ Generalized All-to-All collective (``Comm.Alltoallw()``)
+ User-defined data representations (``Register_datarep()``)

* New scalable implementation of reduction operations for Python
objects. This code is based on binomial tree algorithms using
point-to-point communication and duplicated communicator
contexts. To disable this feature, use
``mpi4py.rc.fast_reduce = False``.

* Backward-incompatible changes:

+ Python 2.4, 2.5, 3.0 and 3.1 are no longer supported.
+ Default MPI error handling policies are overridden. After import,
mpi4py sets the ``ERRORS_RETURN`` error handler in ``COMM_SELF``
and ``COMM_WORLD``, as well as any new ``Comm``, ``Win``, or
``File`` instance created through mpi4py, thus effectively
ignoring the MPI rules about error handler inheritance. This way,
MPI errors translate to Python exceptions. To disable this
behavior and use the standard MPI error handling rules, use
``mpi4py.rc.errors = 'default'``.
+ Change signature of all send methods,
``dest`` is a required argument.
+ Change signature of all receive and probe methods,
``source`` defaults to ``ANY_SOURCE``,
``tag`` defaults to ``ANY_TAG``.
+ Change signature of send lowercase-spelling methods,
``obj`` arguments are not mandatory.
+ Change signature of recv lowercase-spelling methods,
renamed 'obj' arguments to 'buf'.
+ Change ``Request.Waitsome()`` and ``Request.Testsome()``
to return ``None`` or ``list``.
+ Change signature of all lowercase-spelling collectives,
``sendobj`` arguments are now mandatory,
``recvobj`` arguments were removed.
+ Reduction operations ``MAXLOC`` and ``MINLOC`` are no longer
special-cased in lowercase-spelling methods ``Comm.[all]reduce()``
and ``Comm.[ex]scan()``, the input object must be specified as a
tuple ``(obj, location)``.
+ Change signature of name publishing functions.
The new signatures are
``Publish_name(service_name, port_name, info=INFO_NULL)`` and
``Unpublish_name(service_name, port_name, info=INFO_NULL).
+ ``Win`` instances now cache Python objects exposing memory by
keeping references instead of using MPI attribute caching.
+ Change signature of ``Win.Lock()``.
The new signature is
``Win.Lock(rank, lock_type=LOCK_EXCLUSIVE, assertion=0)``.
+ Move ``Cartcomm.Map()`` to ``Intracomm.Cart_map()``.
+ Move ``Graphcomm.Map()`` to ``Intracomm.Graph_map()``.
+ Remove the ``mpi4py.MPE`` module.
+ Rename the Cython definition file for use with ``cimport``
statement from ``mpi_c.pxd`` to ``libmpi.pxd``.

1.3.1

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

* Regenerate C wrappers with Cython 0.19.1 to support Python 3.3.

* Install ``*.pxd`` files in ``<site-packages>/mpi4py`` to ease the
support for Cython's ``cimport`` statement in code requiring to
access mpi4py internals.

* As a side-effect of using Cython 0.19.1, ancient Python 2.3 is no
longer supported. If you really need it, you can install an older
Cython and run ``python setup.py build_src --force``.

1.3

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

* Now ``Comm.recv()`` accept a buffer to receive the message.

* Add ``Comm.irecv()`` and ``Request.{wait|test}[any|all]()``.

* Add ``Intracomm.Spawn_multiple()``.

* Better buffer handling for PEP 3118 and legacy buffer interfaces.

* Add support for attribute attribute caching on communicators,
datatypes and windows.

* Install MPI-enabled Python interpreter as
``<path>/mpi4py/bin/python-mpi``.

* Windows: Support for building with Open MPI.

1.2.2

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

* Add ``mpi4py.get_config()`` to retrieve information (compiler
wrappers, includes, libraries, etc) about the MPI implementation
employed to build mpi4py.

* Workaround Python libraries with missing GILState-related API calls
in case of non-threaded Python builds.

* Windows: look for MPICH2, DeinoMPI, Microsoft HPC Pack at their
default install locations under %ProgramFiles.

* MPE: fix hacks related to old API's, these hacks are broken when MPE
is built with a MPI implementations other than MPICH2.

* HP-MPI: fix for missing Fortran datatypes, use dlopen() to load the
MPI shared library before MPI_Init()

* Many distutils-related fixes, cleanup, and enhancements, better
logics to find MPI compiler wrappers.

* Support for ``pip install mpi4py``.

1.2.1

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

* Fix declaration in Cython include file. This declaration, while
valid for Cython, broke the simple-minded parsing used in
conf/mpidistutils.py to implement configure-tests for availability
of MPI symbols.

* Update SWIG support and make it compatible with Python 3. Also
generate an warning for SWIG < 1.3.28.

* Fix distutils-related issues in Mac OS X. Now ARCHFLAGS environment
variable is honored of all Python's ``config/Makefile`` variables.

* Fix issues with Open MPI < 1.4.2 related to error checking and
``MPI_XXX_NULL`` handles.

1.2

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

* Automatic MPI datatype discovery for NumPy arrays and PEP-3118
buffers. Now buffer-like objects can be messaged directly, it is no
longer required to explicitly pass a 2/3-list/tuple like ``[data,
MPI.DOUBLE]``, or ``[data, count, MPI.DOUBLE]``. Only basic types
are supported, i.e., all C/C99-native signed/unsigned integral types
and single/double precision real/complex floating types. Many thanks
to Eilif Muller for the initial feedback.

* Nonblocking send of pickled Python objects. Many thanks to Andreas
Kloeckner for the initial patch and enlightening discussion about
this enhancement.

* ``Request`` instances now hold a reference to the Python object
exposing the buffer involved in point-to-point communication or
parallel I/O. Many thanks to Andreas Kloeckner for the initial
feedback.

* Support for logging of user-defined states and events using `MPE
<https://www.mcs.anl.gov/research/projects/perfvis/>`_. Runtime
(i.e., without requiring a recompile!) activation of logging of all
MPI calls is supported in POSIX platforms implementing ``dlopen()``.

* Support for all the new features in MPI-2.2 (new C99 and F90
datatypes, distributed graph topology, local reduction operation,
and other minor enhancements).

* Fix the annoying issues related to Open MPI and Python dynamic
loading of extension modules in platforms supporting ``dlopen()``.

* Fix SLURM dynamic loading issues on SiCortex. Many thanks to Ian
Langmore for providing me shell access.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.