Skip to content

mpi4py futures example workflow #347

Answered by dalcinl
jan-janssen asked this question in Q&A
Discussion options

You must be logged in to vote

@jan-janssen I converted your issue to a discussion. You are not reporting any trouble with mpi4py, but rather asking a question that requires discussion.

I want to execute a series of python tasks, which can take in the range from 1 to 10 minutes. Whenever two tasks are completed, I want to combine them and use the combined result as an input for the next calculation.

So you are trying to do/introduce task dependencies/graphs, and that's something concurrent.futures (thus mpi4py.futures) was not designed to provide by itself. Any task dependency management has to be built from your side, just as you are doing. I'm not aware of any built-in tool to help with this.

I believe your code ca…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dalcinl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #346 on April 19, 2023 06:29.