python - Intercommunication with spawned process in mpi4py? -


Given a situation where Master Process A produces a set of Worker Process B, each of its own Unique worker creates process, how can I open Communicator between C to A?

While amending the code I am trying to create a loop using MP4P between several pieces written separately from each other. Therefore, the general structure of the MPI code is going to be:

  1. Master A (a process) produces 8 processes of worker B, and snatches them from the array.
  2. Every b process produces a worker, manages something for the array, and transmits it to its own worker.
  3. Each worker man manages the array in his own way, and then (ideally) the master one is gathering an array back from all the arrays of C.

I know that among the existing processes would include opening an intercourse, possibly using group communication. What will be the best way to accomplish this?

Thank you.

There are two ways you can do this over your head; I will not say that someone else's The match is better or worse, though first you probably match the case of your use.

  1. Use the name publishing system (or some other method) to open it to connect to one with MPI_COMM_CONNECT and < A connection using code> MPI_COMM_ACCEPT . As a result, A group of communicators may be able to formulate a number of procedures, as a result of which some bad things may happen, but this is probably the most direct way to do this. In order to call MPI_COMM_ACCEPT , you have to do something (unfortunately there is no non-blocking version of this call).

  2. Merge your interactions continuously that you are composed of MPI_COMM_SPAWN to create a huge communicator with all the processes, then you can only send messages You can usually create new subcommunicators with (or A and all Spaniards so that you can do them collectively).


Comments