liveBook · Manning

MPI

Also called Message Passing Interface

MPI (Message Passing Interface) is a standard specification for communication among processes in parallel and distributed-memory computing.

How 2 Manning books explain it

Deep Learning with PyTorch, Second Edition

A message-passing standard/backend used here for distributed training across multiple machines.

How it is used
Supports distributed training across multiple machines by providing a backend and communication model for cooperating processes.
How deep it goes
Defines distributed-training terminology and demonstrates broadcast and allreduce, without detailing MPI setup or complete training programs.
Examples
Uses multi-machine layouts plus PyTorch broadcast and allreduce calls operating on rank-specific tensors.
What you can do after
Apply it via torch.distributed to understand process layouts and perform basic collective tensor communication.

Read how Deep Learning with PyTorch, Second Edition explains MPI →

CUDA for LLMs

MPI is a standardized interface for communication among processes in parallel and distributed programs.

How it is used
Assigns process ranks and GPUs and exchanges setup data when launching distributed GPU programs.
How deep it goes
Traces initialization, rank discovery, GPU assignment, and NCCL setup, while assigning heavy tensor traffic to NCCL.
Examples
Uses eight processes on eight GPUs and broadcasts an NCCL communicator ID from rank zero.
What you can do after
Configure process ranks, GPU assignment, and MPI setup for an NCCL communicator.

Read how CUDA for LLMs explains MPI →

Related concepts

Questions about MPI

What is MPI?

MPI (Message Passing Interface) is a standard specification for communication among processes in parallel and distributed-memory computing.

Which Manning books explain MPI?

Deep Learning with PyTorch, Second Edition and CUDA for LLMs.

What is MPI also called?

MPI is also called Message Passing Interface.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.