Skip to content
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

Concurrent Futures style multiprocessing context manager #252

Open
jadball opened this issue Mar 13, 2024 · 0 comments
Open

Concurrent Futures style multiprocessing context manager #252

jadball opened this issue Mar 13, 2024 · 0 comments

Comments

@jadball
Copy link
Contributor

jadball commented Mar 13, 2024

We need a concurrent futures interface inside of ImageD11 that we can import as some kind of Pool, so that you can do this:

with ImageD11.futures.pool(kind='slurm','mpi','threadpool','multiprocessing') as Pool:
    Pool.map(big_scary_function, inputs)

kind specifies a backend (like matplotlib backends)
Could be read from an environment variable by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant