Home Knowledge Base MPI Collective Operations

MPI Collective Operations are communication patterns where all processes in a communicator participate simultaneously — implementing broadcast, scatter, gather, reduce, and all-to-all operations essential for distributed memory parallel computing.

Point-to-Point vs. Collective

Core Collective Operations

MPI_Bcast (Broadcast):

MPI_Bcast(buffer, count, MPI_INT, root, MPI_COMM_WORLD);

MPI_Scatter / MPI_Gather:

MPI_Reduce:

MPI_Reduce(send, recv, count, MPI_DOUBLE, MPI_SUM, root, MPI_COMM_WORLD);

MPI_Allreduce:

MPI_Alltoall:

Algorithm Implementations

Non-Blocking Collectives

MPI_Request req;
MPI_Iallreduce(sendbuf, recvbuf, count, dtype, op, comm, &req);
// Overlap computation here
MPI_Wait(&req, MPI_STATUS_IGNORE);

MPI collective operations are the communication backbone of HPC and distributed training — efficient collective implementations (MVAPICH, OpenMPI, NCCL) are what allow hundreds to thousands of GPUs to train LLMs together at near-linear efficiency.

mpi collective operationsbroadcast scatter gathermpi allreducempi communication patterns

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.