Registry / data / openmpi

openmpi

JSON →
library5.0.10pypypiunverified

Open MPI is a high performance implementation of the Message Passing Interface (MPI) standard, used for parallel computing. The Python package 'openmpi' is a wrapper that provides MPI bindings for Python. Current version is 5.0.10. Release cadence is irregular, following upstream Open MPI releases.

pip install openmpi
INSTALL
IMPORT
SIG · OPENMPI
O
openmpi
datapythonv5.0.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MPI
from mpi4py import MPI
from mpi4py import MPI

Initialize MPI, get rank and size, and perform a simple send/receive.

from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() print(f"Hello from rank {rank} of {size}") # Example: send and receive if rank == 0: data = {'a': 7, 'b': 3.14} comm.send(data, dest=1) elif rank == 1: data = comm.recv(source=0) print(f"Rank 1 received: {data}")
mpirun --version
Debug
Known issues
gotchaThe 'openmpi' PyPI package may not provide Python bindings directly; actual MPI programming in Python typically uses 'mpi4py'. Ensure mpi4py is installed and that the underlying Open MPI library is available on your system.
fix
Use mpi4py instead. Install via: pip install mpi4py
affects: all
breakingOpen MPI 5.x is not backward compatible with Open MPI 4.x custom MPI extensions. User-defined functions that rely on internal MPI hooks may break.
fix
Review application code for any non-standard MPI usage; consult Open MPI 5 migration guide.
affects: 5.x
deprecatedThe 'ompi' command-line tool has been deprecated in favor of 'prrte' for runtime launch. Using 'mpirun' is still supported but may emit warnings.
fix
Use 'mpirun' or switch to 'prrte' launcher if needed.
affects: 5.x
gotchaOpen MPI requires a compatible Fortran compiler at build time; if you compile from source, you may need to install gfortran. Pre-built Python wheels may not be available.
fix
Install system-level Open MPI via package manager (e.g., apt, brew) before using mpi4py.
affects: all
Upgrade
Version history
5.0.10latest on PyPI · released Feb 25, 2026
Audit
Dependencies
mpi4pyrequiredOpen MPI Python interface often relies on mpi4py for Python bindings; openmpi package may be a meta-package or wrapper.
Agent activity
2 hits · last 30 days
node
2
Resources
openmpi — pip install openmpi · libregistry