How open-mpi/ompi works
Open MPI is an implementation of the MPI specification. Its user-facing workflow is an application invoking MPI operations across processes; runtime launch and process-management support make those processes available, while communication and collective modules provide the library’s distributed behavior. The tree also includes MPI-IO, dynamic process management, and OSHMEM. Several connections below are dashed because the supplied excerpts do not show their runtime wiring; the graph does not infer calls merely from directory names.
Main entry points: comm.c Communicators · mpi MPI operations · pml Point-to-point · io MPI-IO
Components 21
MPI Core
- MPI operations
ompi/mpi - Error handlers
ompi/errhandler/errhandler.c - MPI datatypes
ompi/datatype - OSHMEM
oshmem
Process Coordination
- Communicators
ompi/communicator/comm.c - Process registry
ompi/proc - Process groups
ompi/group - Dynamic processes
ompi/dpm/dpm.c
Communication
- Collectives
ompi/mca/coll - Point-to-point
ompi/mca/pml - OB1 receive
ompi/mca/pml/ob1/pml_ob1_recvfrag.c - Transport modules
opal/mca/btl
Parallel I/O
- MPI-IO
ompi/mca/io - Filesystem modules
ompi/mca/fs - Collective I/O
ompi/mca/fcoll
Runtime Support
- mpirun
ompi/tools/mpirun/main.c - PRRTE launcher
- PMIx support
opal/mca/pmix/pmix-internal.h - OPAL foundations
opal - MCA component repository
opal/mca/base/mca_base_component_repository.c
Other components
- MPI application
Connections 19
- MPI application → MPI operations: invokes
- MPI operations → Communicators: uses
- MPI operations → MPI datatypes: uses
- MPI operations → Collectives: dispatches
- MPI operations → Point-to-point: dispatches
- MPI operations → MPI-IO: dispatches
- Communicators → Process registry: references
ompi/communicator/comm.c - Communicators → Process groups: uses
ompi/communicator/comm.c - Communicators → Dynamic processes: uses
ompi/communicator/comm.c - Error handlers → Communicators: handles errors
ompi/errhandler/errhandler.c - OB1 receive → Communicators: checks matches
ompi/mca/pml/ob1/pml_ob1_recvfrag.c - Point-to-point → OB1 receive: implements receive
ompi/mca/pml/ob1/pml_ob1_recvfrag.c - Point-to-point → Transport modules: uses transport
- MPI-IO → Filesystem modules: uses filesystem
- MPI-IO → Collective I/O: uses collective I/O
- mpirun → PRRTE launcher: executes
ompi/tools/mpirun/main.c - Communicators → PMIx support: uses process services
ompi/communicator/comm.c - MCA component repository → OPAL foundations: uses foundations
opal/mca/base/mca_base_component_repository.c - mpirun → OPAL foundations: initializes utilities
ompi/tools/mpirun/main.c