{"library":"openmpi","title":"Open MPI","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install openmpi"],"cli":{"name":"mpirun","version":"mpirun (Open MPI) 5.0.10"}},"imports":["from mpi4py import MPI"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mpi4py import MPI\n\ncomm = MPI.COMM_WORLD\nrank = comm.Get_rank()\nsize = comm.Get_size()\n\nprint(f\"Hello from rank {rank} of {size}\")\n\n# Example: send and receive\nif rank == 0:\n    data = {'a': 7, 'b': 3.14}\n    comm.send(data, dest=1)\nelif rank == 1:\n    data = comm.recv(source=0)\n    print(f\"Rank 1 received: {data}\")","lang":"python","description":"Initialize MPI, get rank and size, and perform a simple send/receive.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}