{"id":27060,"library":"impi-rt","title":"Intel MPI Library Python Bindings","description":"The impi-rt package provides Python bindings for Intel MPI Library, enabling high-performance message passing for parallel computing. Currently at version 2021.18.0, it follows Intel's release cadence tied to Intel MPI releases. It is a runtime-only package intended for executing MPI applications; the development package (impi-devel) is separate.","status":"active","version":"2021.18.0","language":"python","source_language":"en","source_url":"https://github.com/IntelPython/impi-rt","tags":["mpi","intel","hpc","parallel-computing"],"install":[{"cmd":"pip install impi-rt","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Many users use impi-rt with mpi4py for MPI bindings; impi-rt itself provides the runtime, mpi4py provides the Python interface.","package":"mpi4py","optional":true}],"imports":[{"wrong":"from mpi4py import MPI","symbol":"MPI","correct":"from impi_rt import MPI"}],"quickstart":{"code":"from mpi4py import MPI\nimport numpy as np\n\ncomm = MPI.COMM_WORLD\nrank = comm.Get_rank()\nsize = comm.Get_size()\ndata = np.array([rank + 1], dtype=np.int32)\nif rank == 0:\n    comm.Send(data, dest=1)\n    print(f\"Rank 0 sent {data[0]}\")\nelif rank == 1:\n    recv = np.zeros(1, dtype=np.int32)\n    comm.Recv(recv, source=0)\n    print(f\"Rank 1 received {recv[0]}\")\n","lang":"python","description":"Basic MPI send/receive using mpi4py with Intel MPI runtime. Run with 'mpirun -np 2 python script.py'."},"warnings":[{"fix":"Install impi-devel (or intel-oneapi-mpi-devel) for development headers and compiler wrappers.","message":"impi-rt is the runtime package; for development, install impi-devel. Without impi-devel, you cannot compile MPI applications but can run them if the runtime is present.","severity":"gotcha","affected_versions":"all"},{"fix":"Use conda: conda install -c intel intelmpi -c intel mpi4py","message":"Intel has transitioned from pypi impi-rt to conda/OneAPI packages. The PyPI version is outdated (2021.18.0) and may not be actively maintained. Use conda with intelmpi for newer versions.","severity":"breaking","affected_versions":"2021.18.0"},{"fix":"Use mpi4py: from mpi4py import MPI; rank = MPI.COMM_WORLD.Get_rank()","message":"MPI_Comm_rank and similar MPI functions are not directly available via impi-rt; you must use mpi4py bindings.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2021.18.0':30 'applic':53 'bind':5,13 'cadenc':36 'comput':26,67 'current':27 'devel':59 'develop':55 'enabl':18 'execut':51 'follow':32 'high':20 'high-perform':19 'hpc':64 'impi':8,58 'impi-devel':57 'impi-rt':7 'intel':1,15,33,39,63 'intend':49 'librari':3,17 'messag':22 'mpi':2,16,40,52,62 'packag':10,48,56 'parallel':25,66 'parallel-comput':65 'pass':23 'perform':21 'provid':11 'python':4,12 'releas':35,41 'rt':9 'runtim':46 'runtime-on':45 'separ':61 'tie':37 'version':29","created_at":"2026-05-01T17:44:17.606034+00:00","updated_at":"2026-05-01T17:44:17.606034+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'impi_rt'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://software.intel.com/en-us/mpi-library","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/impi-rt/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}