Skip to content

Task scheduling customization with MPIPoolExecutor #481

Discussion options

You must be logged in to vote

I'll start backwards...

Do you have some previous experience with MPI such that you can implement the thing I just described?

Yes I do, thanks

What you say makes a lot of sense. Just before reading your reply, I managed to achieve what I needed, but admittedly it's with some horrible hacks and unsure how robust it is... though it seems to be doing the trick for now.

The gist of it (pseudocode) is the following:

class Fleet(MPIPoolExecutor):
    _make_pool = staticmethod(my_own_pool)

def my_own_pool(executor):
    # Same Pool as in mpi4py.futures._lib, but now passing in my own manager)
    return Pool(executor, my_own_manager)  

class OrderedDeque(Stack):

    def put(self, item):
   …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@FabioLuporini
Comment options

Answer selected by dalcinl
@dalcinl
Comment options

@FabioLuporini
Comment options

@dalcinl
Comment options

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