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.
|
abort(self,
error_code)
Abort all processes associated with the communicator. |
|
|
|
allreduce(self,
sendbuffer,
receivebuffer,
operation)
Combine data from all processes and send result to all |
|
|
|
barrier(self)
Wait until all processes in the communicator have called the same
method, then all processes continue. |
|
|
|
broadcast(self,
array,
root)
Send data to all processes |
|
|
MPICommunicator
|
duplicate(self)
Returns:
a new communicator with the same properties as the original one |
|
|
NoneType or tuple
|
|
MPIRequest
|
nonblockingReceive(self,
data,
source=None,
tag=None)
Receive data from another process (non-blocking) |
|
|
MPIRequest
|
nonblockingSend(self,
data,
destination,
tag)
Send data to another process (non-blocking) |
|
|
tuple
|
receive(self,
data,
source=None,
tag=None)
Receive data from another process (blocking) |
|
|
tuple
|
receiveString(self,
source=None,
tag=None)
Receive string data from another process (blocking) |
|
|
|
reduce(self,
sendbuffer,
receivebuffer,
operation,
root)
Combine data from all processes and send result to one |
|
|
|
send(self,
data,
destination,
tag)
Send data to another process (blocking) |
|
|
|
share(self,
send,
receive)
Distribute data from each processpr to all other processesors |
|
|
|
subset(self,
ranks)
Create a communicator for a subset of the processes |
|
|