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

Constants

MPI.COMM_WORLDConstant
MPI.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.

source

Functions

Operations

MPI.Comm_rankFunction
Comm_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

source
MPI.Comm_compareFunction
Comm_compare(comm1::Comm, comm2::Comm)::MPI.Comparison

Compare two communicators and their underlying groups, returning an element of the Comparison enum.

External links

source
MPI.Comm_groupFunction
Comm_group(comm::Comm)

Accesses the group associated with given communicator.

External links

source
MPI.Comm_remote_groupFunction

Commremotegroup(comm::Comm)

Accesses the remote group associated with the given inter-communicator.

External links

source

Constructors

MPI.Comm_spawnFunction
Comm_spawn(command, argv::Vector{String}, nprocs::Integer, comm::Comm[, errors::Vector{Cint}]; kwargs...)

External links

source

Miscellaneous

MPI.universe_size