Module Scientific.MPI

This module contains a Python interface to the Message Passing Interface (MPI), and standardized library for message-passing parallel computing. Please read an introduction to MPI before using this module; some terms in the documentation do not make much sense unless you understand the principles of MPI.

This module contains an object, world, which represents the default communicator in MPI. This communicator can be used directly for sending and receiving data, or other communicators can be derived from it.

A number of global constants are also defined ( max, min, prod, sum, land, lor, lxor, band, bor, bxor, maxloc and minloc ). They are used to specify the desired operator in calls to the reduce and allreduce methods of the communicator objects.

Submodules:


Class MPICommunicator: MPI Communicator

There is no constructor for MPI Communicator objects. The default communicator is given by Scientific.MPI.world, and other communicators can only be created by methods on an existing communicator object.

A communicator object has two read-only attributes: rank is an integer which indicates the rank of the current process in the communicator, and size is an integer equal to the number of processes that participate in the communicator.

Methods:

Class MPIError: MPI call failed


Class MPIRequest: MPI Request

There is no constructor for MPI Request objects. They are returned by nonblocking send and receives, and are used to query the status of the message.

Methods: