Skip to content

Commit

Permalink
Parallel module (NeuralEnsemble#307)
Browse files Browse the repository at this point in the history
* ProcessPoolExecutor
* MPIPoolExecutor
* MPICommExecutor
  • Loading branch information
dizcza committed Mar 30, 2020
1 parent f3360bb commit a9d5ba1
Show file tree
Hide file tree
Showing 13 changed files with 675 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ matrix:
env: DISTRIB="pip"
before_install: sudo apt install -y libopenmpi-dev openmpi-bin
before_script: pip install -r requirements/requirements-extras.txt
script: mpiexec -n 1 nosetests --with-coverage --cover-package=elephant
script: mpiexec -n 1 python -m mpi4py.futures -m nose --with-coverage --cover-package=elephant
after_success: coveralls || echo "coveralls failed"

- name: "conda 3.7"
Expand All @@ -50,8 +50,10 @@ install:
source "$HOME/miniconda/etc/profile.d/conda.sh";
conda config --set always_yes yes;
conda update conda;
sed -i "s/python>=[0-9]\.[0-9]/python=${TRAVIS_PYTHON_VERSION}/g" requirements/environment.yml;
conda env create -f requirements/environment.yml;
conda activate elephant;
conda uninstall -y mpi4py;
pip list;
else
pip install -r requirements/requirements.txt;
Expand Down
1 change: 1 addition & 0 deletions doc/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Function Reference by Module
reference/kernels
reference/neo_tools
reference/pandas_bridge
reference/parallel
reference/phase_analysis
reference/signal_processing
reference/spade
Expand Down
5 changes: 5 additions & 0 deletions doc/reference/parallel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
========
Parallel
========

.. automodule:: elephant.parallel
14 changes: 14 additions & 0 deletions doc/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,17 @@ Advanced

.. image:: https://mybinder.org/badge.svg
:target: https://mybinder.org/v2/gh/NeuralEnsemble/elephant/master?filepath=doc/tutorials/gpfa.ipynb


Additional
----------

* Parallel

``elephant.parallel`` module provides a simple interface to parallelize
multiple calls to any user-specified function.

:doc:`View the notebook <../tutorials/parallel>` or run interactively:

.. image:: https://mybinder.org/badge.svg
:target: https://mybinder.org/v2/gh/NeuralEnsemble/elephant/master?filepath=doc/tutorials/parallel.ipynb

0 comments on commit a9d5ba1

Please sign in to comment.