Skip to main content

MPI for Python.

Project description

MPY stands for “MPi for pYthon”, is a single-module wrapper for any MPI library. Just copy the mpy.py then it works (needless to say, after you have MPI installed on a cluster). MPY has no external dependency other than a working MPI installation and a standard Python. The MPI installation has to be built with shared object since MPY uses ctypes as interface.

All the functions in the MPI library can be accessed by MPI().Name_Without_Leading_MPI(), and you must manually convert the arguments from Python objects to ctypes objects. Shorthand APIs and Pythonic APIs are also provided. Shorthand APIs use Python objects and can return Python objects, with the same naming convention as MPI, but all lower-cased. Pythonic APIs are Pythonic.

You can verify the “installation” of MPY by running:

$ mpiexec -n 2 python mpy.py

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpy-0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file mpy-0.1.tar.gz.

File metadata

  • Download URL: mpy-0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mpy-0.1.tar.gz
Algorithm Hash digest
SHA256 edf448726984171409f0ba89746914bc7b06886acc69479769660bf1074af4e5
MD5 ecaccfdc2aa07da187b6dae905f88fd5
BLAKE2b-256 9318538b363a03833f5080e6ae1e549be54fa5e5af35f51c4c84733239ec4a11

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page