Communicators
An MPI communicator specifies the communication context for a communication operation. In particular, it specifies the set of processes which share the context, and assigns each each process a unique rank (see MPI.Comm_rank
) taking an integer value in 0:n-1
, where n
is the number of processes in the communicator (see MPI.Comm_size
.
Types and enums
MPI.Comm
— TypeMPI.Comm
An MPI Communicator object.
MPI.Comparison
— TypeComparison
An enum denoting the result of Comm_compare
:
MPI.IDENT
: the objects are handles for the same object (identical groups and same contexts).MPI.CONGRUENT
: the underlying groups are identical in constituents and rank order; these communicators differ only by context.MPI.SIMILAR
: members of both objects are the same but the rank order differs.MPI.UNEQUAL
: otherwise
Constants
MPI.COMM_WORLD
— ConstantMPI.COMM_WORLD
A communicator containing all processes with which the local rank can communicate at initialization. In a typical "static-process" model, this will be all processes.
MPI.COMM_SELF
— ConstantMPI.COMM_SELF
A communicator containing only the local process.
Functions
Operations
MPI.Comm_size
— FunctionComm_size(comm::Comm)
The number of processes involved in communicator.
See also
External links
MPI.Comm_rank
— FunctionComm_rank(comm::Comm)
The rank of the process in the particular communicator's group.
Returns an integer in the range 0:MPI.Comm_size()-1
.
See also
External links
MPI.Comm_compare
— FunctionComm_compare(comm1::Comm, comm2::Comm)::MPI.Comparison
Compare two communicators, returning an element of the Comparison
enum.
External links
Constructors
MPI.Comm_dup
— FunctionMPI.Comm_get_parent
— FunctionMPI.Comm_spawn
— FunctionComm_spawn(command, argv::Vector{String}, nprocs::Integer, comm::Comm[, errors::Vector{Cint}]; kwargs...)
External links
MPI.Comm_split
— FunctionComm_split(comm::Comm, color::Integer, key::Integer)
External links
MPI.Comm_split_type
— FunctionComm_split_type(comm::Comm, split_type::Integer, key::Integer; kwargs...)
External links
MPI.Intercomm_merge
— FunctionIntercomm_merge(intercomm::Comm, flag::Bool)
External links
Miscellaneous
MPI.universe_size