pyMPI

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by JJMC89 bot III (talk | contribs) at 21:18, 21 September 2020 (Moving Category:Python software to Category:Python (programming language) software per Wikipedia:Categories for discussion/Speedy). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

pyMPI is a software project that integrates the Message Passing Interface (MPI) into the Python interpreter.

It allows one to write parallel programs using the Python language.

It has not been updated since 2013-04-17. [1]

Example of usage[edit]

This python program:

$ mpirun -np 3 pyMPI
> import mpi
> print "Hi, I'm process #%d" % mpi.rank

will print this output:

Hi, I'm process #0
Hi, I'm process #1
Hi, I'm process #2

The -np parameter given to mpirun tells mpi to use 3 processes, and each process in its turn prints its output on the screen.

References[edit]

  1. ^ "MPI Python". SourceForge. Retrieved 2018-12-16.

External links[edit]