python - mpi4py - Get process's own communicator -


we working on mpi4py project want group processes in different groups. assign these groups own communicators. theses steps done process 0.

now question how can other processes find out communicator belong to?

please note groups of different sizes, e.g. group 1 contains 5 processes , group 2 3 ones. so, how can process 4 (in group one) communicator group one.

mpi you. take @ mpi_comm_split, or in mpi4py comm.split(). important parameters 'color' (which group processes end in) , 'key' (what order process in group).

it sounds know how want 'color' processes. comm.split() collective on parent communicator, you'll compute on each node color should be, split communicator. can leave key alone, in case processes sorted according rank in parent communicator.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -