3.1.4.10. c3po.mpi.MPIMasterExchanger module

Inheritance diagram of c3po.mpi.MPIMasterExchanger

Contain the class MPIMasterExchanger.

class c3po.mpi.MPIMasterExchanger.MPIMasterExchanger(workerProcesses, idExchangerWorker, localExchanger=None)

Bases: Exchanger

MPIMasterExchanger is used by the master to control remote c3po.Exchanger.Exchanger.

It can, in addition, be in charge of a local one (that allows the master to participate to the calculation).

The exchange() method of MPIMasterExchanger commands workers to exchange data.

__init__(workerProcesses, idExchangerWorker, localExchanger=None)

Build a MPIMasterExchanger object.

Parameters:
clean()

See c3po.Exchanger.Exchanger.clean().

exchange()

Trigger the exchange of data.