|
PaCO++
0.05
|
#include <ParisBlockMPC.h>


Public Member Functions | |
| virtual void | clientFree ()=0 |
| virtual PieceToSend * | computePiecesToSend (unsigned &size)=0 |
| bool | computeReceive (Abstrait *darray) |
| Compute communication schedule on the server side. More... | |
| void | computeSend (const void *data, vAbstrait &vdarray, vector< unsigned > &destid) |
| Compute communication schedule on the client side. More... | |
| virtual bool | freeComId (long id) |
| virtual void * | getClientData (void *pid, int server_node, long &size, long &length, bool &end)=0 |
| virtual void * | getDescr ()=0 |
| virtual PaCO::PacoTopology_t | getDestTopology ()=0 |
| const PaCO::distLoc_t & | getMode () const |
| virtual long | getNodeRank ()=0 |
| Abstrait * | getResult () const |
| If computeReceive returns ok, get the data. More... | |
| virtual void * | getServerData (long &length)=0 |
| virtual PaCO::PacoTopology_t | getSourceTopology ()=0 |
| virtual bool | insertData (void *rcptBuf, unsigned long element_nb)=0 |
| ParisBlockMPC (Fabrique *f) | |
| void | reset () |
| virtual void | serverFree ()=0 |
| bool | setClientConfiguration (const PaCO::PacoTopology_t &ctopo) |
| virtual bool | setComId (long id) |
| void | setCommunicator (void *comm) |
| virtual void | setDataPtr (void *dataPtr)=0 |
| virtual void | setDescr (void *descr)=0 |
| virtual void | setDestTopology (PaCO::PacoTopology_t topo)=0 |
| void | setFabric (Fabrique *f) |
| bool | setGlobalDataConfiguration (const PaCO::PacoGlobalData_t &gd) |
| bool | setLocalDataConfiguration (const PaCO::PacoLocalData_t &ld) |
| bool | setMode (const PaCO::distLoc_t mode) |
| virtual void | setNodeRank (long Rank)=0 |
| bool | setServerConfiguration (const PaCO::PacoTopology_t &stopo) |
| virtual void | setSourceTopology (PaCO::PacoTopology_t topo)=0 |
| virtual | ~ParisBlockMPC () |
Private Attributes | |
| PaCO::PacoTopology_t | _clttopo |
| void * | _comm |
| Abstrait * | _darray |
| Fabrique * | _fab |
| PaCO::PacoGlobalData_t | _gd |
| LocalData_t | _ld |
| PaCO::distLoc_t | _mode |
| int | _remaining |
| PaCO::PacoTopology_t | _srvtopo |
| vAbstrait * | _vdarray |
Definition at line 7 of file ParisBlockMPC.h.
| ParisBlockMPC::ParisBlockMPC | ( | Fabrique * | f | ) |
Definition at line 5 of file ParisBlockMPC.cc.
References _clttopo, _darray, _srvtopo, _vdarray, setFabric(), and PaCO::PacoTopology_s::total.
Referenced by ParisBlockMPC_fab::paco_create().

|
virtual |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, and GaBro.
| bool ParisBlockMPC::computeReceive | ( | Abstrait * | darray | ) |
Compute communication schedule on the server side.
Definition at line 44 of file ParisBlockMPC.cc.
References _clttopo, _comm, _darray, _ld, _mode, _remaining, _srvtopo, _vdarray, computeReceiveDataBlock1D(), nbofPart(), posofPart(), setClientConfiguration(), setMode(), and PaCO::PacoTopology_s::total.
Referenced by setCommunicator().

| void ParisBlockMPC::computeSend | ( | const void * | data, |
| vAbstrait & | vdarray, | ||
| vector< unsigned > & | destid | ||
| ) |
Compute communication schedule on the client side.
Definition at line 38 of file ParisBlockMPC.cc.
References _clttopo, _comm, _gd, _ld, _mode, _srvtopo, and computeSendDataBlock1D().
Referenced by setCommunicator().

|
inlinevirtualinherited |
Reimplemented in BasicBC, and GaBro.
Definition at line 41 of file DistributionLibrairie.h.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, and GaBro.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| const PaCO::distLoc_t & ParisBlockMPC::getMode | ( | ) | const |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| Abstrait * ParisBlockMPC::getResult | ( | ) | const |
If computeReceive returns ok, get the data.
Definition at line 84 of file ParisBlockMPC.cc.
References _darray.
Referenced by setCommunicator().
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, and GaBro.
| void ParisBlockMPC::reset | ( | ) |
Definition at line 21 of file ParisBlockMPC.cc.
References _vdarray.
Referenced by setCommunicator().
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| bool ParisBlockMPC::setClientConfiguration | ( | const PaCO::PacoTopology_t & | ctopo | ) |
Definition at line 27 of file ParisBlockMPC.cc.
References _clttopo.
Referenced by computeReceive(), and setCommunicator().
|
inlinevirtualinherited |
Reimplemented in BasicBC, and GaBro.
Definition at line 40 of file DistributionLibrairie.h.
Referenced by PaCO_operation::useCommunicationMemoryId().
|
inlinevirtual |
Implements DistributionLibrary.
Definition at line 31 of file ParisBlockMPC.h.
References computeReceive(), computeSend(), getMode(), getResult(), reset(), setClientConfiguration(), setFabric(), setGlobalDataConfiguration(), setLocalDataConfiguration(), setMode(), and setServerConfiguration().

|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
| void ParisBlockMPC::setFabric | ( | Fabrique * | f | ) |
Definition at line 19 of file ParisBlockMPC.cc.
References _fab.
Referenced by ParisBlockMPC(), and setCommunicator().
| bool ParisBlockMPC::setGlobalDataConfiguration | ( | const PaCO::PacoGlobalData_t & | gd | ) |
| bool ParisBlockMPC::setLocalDataConfiguration | ( | const PaCO::PacoLocalData_t & | ld | ) |
Definition at line 31 of file ParisBlockMPC.cc.
References _ld, PaCO::PacoLocalData_s::len, PaCO::PacoLocalData_s::rank, and PaCO::PacoLocalData_s::start.
Referenced by setCommunicator().
| bool ParisBlockMPC::setMode | ( | const PaCO::distLoc_t | mode | ) |
Definition at line 25 of file ParisBlockMPC.cc.
References _mode.
Referenced by computeReceive(), and setCommunicator().
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
| bool ParisBlockMPC::setServerConfiguration | ( | const PaCO::PacoTopology_t & | stopo | ) |
Definition at line 28 of file ParisBlockMPC.cc.
References _srvtopo.
Referenced by setCommunicator().
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
|
private |
Definition at line 11 of file ParisBlockMPC.h.
Referenced by computeReceive(), computeSend(), ParisBlockMPC(), and setClientConfiguration().
|
private |
Definition at line 18 of file ParisBlockMPC.h.
Referenced by computeReceive(), and computeSend().
|
private |
Definition at line 21 of file ParisBlockMPC.h.
Referenced by computeReceive(), getResult(), ParisBlockMPC(), and ~ParisBlockMPC().
|
private |
Definition at line 20 of file ParisBlockMPC.h.
Referenced by setFabric(), and ~ParisBlockMPC().
|
private |
Definition at line 13 of file ParisBlockMPC.h.
Referenced by computeSend(), and setGlobalDataConfiguration().
|
private |
Definition at line 16 of file ParisBlockMPC.h.
Referenced by computeReceive(), computeSend(), and setLocalDataConfiguration().
|
private |
Definition at line 10 of file ParisBlockMPC.h.
Referenced by computeReceive(), computeSend(), getMode(), and setMode().
|
private |
Definition at line 23 of file ParisBlockMPC.h.
Referenced by computeReceive().
|
private |
Definition at line 12 of file ParisBlockMPC.h.
Referenced by computeReceive(), computeSend(), ParisBlockMPC(), and setServerConfiguration().
|
private |
Definition at line 22 of file ParisBlockMPC.h.
Referenced by computeReceive(), ParisBlockMPC(), reset(), and ~ParisBlockMPC().