mpi4py.MPI.Intercomm

class mpi4py.MPI.Intercomm(comm=None)

Bases: Comm

Intercommunicator

Parameters

comm (Optional[Intercomm]) –

Return type

Intercomm

static __new__(cls, comm=None)
Parameters

comm (Optional[Intercomm]) –

Return type

Intercomm

Methods Summary

Create_from_groups(local_group, ...[, ...])

Create communicator from group

Get_remote_group()

Access the remote group associated with the inter-communicator

Get_remote_size()

Intercommunicator remote size

Merge([high])

Merge intercommunicator

Attributes Summary

remote_group

remote group

remote_size

number of remote processes

Methods Documentation

classmethod Create_from_groups(local_group, local_leader, remote_group, remote_leader, stringtag='org.mpi4py', info=INFO_NULL, errhandler=None)

Create communicator from group

Parameters
Return type

Intracomm

Get_remote_group()

Access the remote group associated with the inter-communicator

Return type

Group

Get_remote_size()

Intercommunicator remote size

Return type

int

Merge(high=False)

Merge intercommunicator

Parameters

high (bool) –

Return type

Intracomm

Attributes Documentation

remote_group

remote group

remote_size

number of remote processes