-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cogent3.util.parallel
: is there a flexible replacement, e.g. joblib?
#3
Comments
Original comment by GavinH (Bitbucket: 557058:e40c23e1-e273-4527-a2f8-5de5876e870d, ). Here's link to mpi variant of master/children |
Original comment by GavinH (Bitbucket: 557058:e40c23e1-e273-4527-a2f8-5de5876e870d, ). It looks like the Can you work up a very simple example that does the same basic calculation using the two different backends. |
Original comment by Sheng Han Moses Koh (Bitbucket: 5c6a02d4d3e7b93ea1c22610, GitHub: u6052029). The attached example is derived from the example present in the standard library concurrent.futures documentation. It is meant to be ran using "mpiexec -n 1 --bind-to none python executorPoolExample.py" to show the performance of both the multiprocessing pool and the mpi4py processing pool. Ran sequentially, the example take roughly 15 seconds. |
Original comment by GavinH (Bitbucket: 557058:e40c23e1-e273-4527-a2f8-5de5876e870d, ). Below is output from different executions (edited for brevity) for discussion:
|
Original comment by Sheng Han Moses Koh (Bitbucket: 5c6a02d4d3e7b93ea1c22610, GitHub: u6052029). 7e4e531 |
Original report by GavinH (Bitbucket: 557058:e40c23e1-e273-4527-a2f8-5de5876e870d, ).
What we need is something that can go from threads on a single box to using MPI.
Look into joblib and dask.
Do they also support a manager/worker style parallelisation?
Abstract module for parallel computations using mpi,futures or concurrent.futures.
def map(f, s, max_workers=None, use_mpi=False):
(user warning if max_workers is 1 unless the number of cpus is 1)
if MPI is None and use_mpi:
exception
(Check is max_workers can fit in the number of available processes)
parallel map stuff
Find out how to test(decorator from unittest, PyTest?)
The text was updated successfully, but these errors were encountered: