mpi4py.MPI.Group
- class mpi4py.MPI.Group
Bases:
object
Group of processes.
Methods Summary
Compare
(group)Compare two groups.
Create_from_session_pset
(session, pset_name)Create a new group from session and process set.
Difference
(group1, group2)Create a new group from the difference of two existing groups.
Dup
()Duplicate a group.
Excl
(ranks)Create a new group by excluding listed members.
Free
()Free a group.
Get_rank
()Return the rank of this process in a group.
Get_size
()Return the number of processes in a group.
Incl
(ranks)Create a new group by including listed members.
Intersection
(group1, group2)Create a new group from the intersection of two existing groups.
Range_excl
(ranks)Create a new group by excluding ranges of members.
Range_incl
(ranks)Create a new group by including ranges of members.
Translate_ranks
([ranks, group])Translate ranks in a group to those in another group.
Union
(group1, group2)Create a new group from the union of two existing groups.
f2py
(arg)free
()Call
Free
if not null or predefined.fromhandle
(handle)Create object from MPI handle.
fromint
(arg, /)Translate integer handle to object.
py2f
()toint
()Translate object to integer handle.
Attributes Summary
MPI handle.
Rank of this process.
Number of processes.
Methods Documentation
- classmethod Create_from_session_pset(session, pset_name)
Create a new group from session and process set.
- classmethod Difference(group1, group2)
Create a new group from the difference of two existing groups.
- Excl(ranks)
Create a new group by excluding listed members.
- Incl(ranks)
Create a new group by including listed members.
- classmethod Intersection(group1, group2)
Create a new group from the intersection of two existing groups.
- Range_excl(ranks)
Create a new group by excluding ranges of members.
- Range_incl(ranks)
Create a new group by including ranges of members.
- Translate_ranks(ranks=None, group=None)
Translate ranks in a group to those in another group.
- classmethod Union(group1, group2)
Create a new group from the union of two existing groups.
- classmethod fromhandle(handle)
Create object from MPI handle.
- classmethod fromint(arg, /)
Translate integer handle to object.
Attributes Documentation
- handle
MPI handle.
- rank
Rank of this process.
- size
Number of processes.