Skip to content
Projects

Installation

mpiparticles needs Python 3.10 or newer. Create and activate an environment:

Terminal window
python -m venv env
source env/bin/activate
pip install --upgrade pip

Install the package and its requirements (numpy, cunumpy, maybempi and mpiarray) with pip:

Terminal window
pip install -e .

Without an MPI launcher, mpiparticles runs on one rank with maybempi’s stand-in for mpi4py, and makes no MPI call. For several ranks install an MPI library and mpi4py, and start the program with mpiexec:

Terminal window
pip install -e ".[mpi]"
mpiexec -n 4 python my_program.py
ExtraInstalls
mpimpi4py, needed to run on more than one rank
testpytest and coverage
docsthe notebook runner and griffe for the API reference
devformatters and linters, plus the mpi, test and docs extras
Terminal window
pip install -e ".[dev]"

The tests that start mpiexec -n 2 and -n 4 jobs are skipped when mpiexec or mpi4py is missing.