##// END OF EJS Templates
changed main script to be compliant back to ipython script directory call
changed main script to be compliant back to ipython script directory call

File last commit:

r1256:9ed9604c
r1822:0430a05d
Show More
parallel_mpi.txt
21 lines | 766 B | text/plain | TextLexer
.. _parallelmpi:
=======================
Using MPI with IPython
=======================
The simplest way of getting started with MPI is to install an MPI implementation
(we recommend `Open MPI`_) and `mpi4py`_ and then start the engines using the
``mpirun`` command::
mpirun -n 4 ipengine --mpi=mpi4py
This will automatically import `mpi4py`_ and make sure that `MPI_Init` is called
at the right time. We also have built in support for `PyTrilinos`_, which can be
used (assuming `PyTrilinos`_ is installed) by starting the engines with::
mpirun -n 4 ipengine --mpi=pytrilinos
.. _MPI: http://www-unix.mcs.anl.gov/mpi/
.. _mpi4py: http://mpi4py.scipy.org/
.. _Open MPI: http://www.open-mpi.org/
.. _PyTrilinos: http://trilinos.sandia.gov/packages/pytrilinos/