|
PaCO++
0.05
|
#include <ParisBlock.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 |
| void * | getConfig () |
| 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 |
| ParisBlock (Fabrique *f) | |
| ParisBlock (Fabrique *f, unsigned int blocksize) | |
| void | reset () |
| virtual void | serverFree ()=0 |
| bool | setClientConfiguration (const PaCO::PacoTopology_t &ctopo) |
| virtual bool | setComId (long id) |
| void | setCommunicator (void *comm) |
| int | setConfig (void *config) |
| 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 | ~ParisBlock () |
Private Attributes | |
| PaCO::PacoTopology_t | _clttopo |
| void * | _comm |
| Abstrait * | _darray |
| Fabrique * | _fab |
| PaCO::PacoGlobalData_t | _gd |
| LocalData_t | _ld |
| PaCO::distLoc_t | _mode |
| ParisBlock_param_t | _param |
| int | _remaining |
| PaCO::PacoTopology_t | _srvtopo |
| vAbstrait * | _vdarray |
Definition at line 9 of file ParisBlock.h.
| ParisBlock::ParisBlock | ( | Fabrique * | f | ) |
Definition at line 5 of file ParisBlock.cc.
References _clttopo, _darray, _param, _srvtopo, _vdarray, ParisBlock_param_t::blocksize, PARISBLOCK_BLOCK, setFabric(), PaCO::PacoTopology_s::total, ParisBlock_param_t::type, and ParisBlock_param_t::unitblocksize.
Referenced by ParisBlock_fab::paco_create().

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

| void ParisBlock::computeSend | ( | const void * | data, |
| vAbstrait & | vdarray, | ||
| vector< unsigned > & | destid | ||
| ) |
Compute communication schedule on the client side.
Definition at line 53 of file ParisBlock.cc.
References _clttopo, _comm, _gd, _ld, _mode, _param, _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.
| void * ParisBlock::getConfig | ( | ) |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| const PaCO::distLoc_t & ParisBlock::getMode | ( | ) | const |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| Abstrait * ParisBlock::getResult | ( | ) | const |
If computeReceive returns ok, get the data.
Definition at line 99 of file ParisBlock.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 ParisBlock::reset | ( | ) |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
| bool ParisBlock::setClientConfiguration | ( | const PaCO::PacoTopology_t & | ctopo | ) |
Definition at line 33 of file ParisBlock.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 39 of file ParisBlock.h.
References computeReceive(), computeSend(), getConfig(), getMode(), getResult(), reset(), setClientConfiguration(), setConfig(), setFabric(), setGlobalDataConfiguration(), setLocalDataConfiguration(), setMode(), and setServerConfiguration().

| int ParisBlock::setConfig | ( | void * | config | ) |
Definition at line 44 of file ParisBlock.cc.
References _param.
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, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
| void ParisBlock::setFabric | ( | Fabrique * | f | ) |
Definition at line 25 of file ParisBlock.cc.
References _fab.
Referenced by ParisBlock(), and setCommunicator().
| bool ParisBlock::setGlobalDataConfiguration | ( | const PaCO::PacoGlobalData_t & | gd | ) |
| bool ParisBlock::setLocalDataConfiguration | ( | const PaCO::PacoLocalData_t & | ld | ) |
Definition at line 37 of file ParisBlock.cc.
References _ld, PaCO::PacoLocalData_s::len, PaCO::PacoLocalData_s::rank, and PaCO::PacoLocalData_s::start.
Referenced by setCommunicator().
| bool ParisBlock::setMode | ( | const PaCO::distLoc_t | mode | ) |
Definition at line 31 of file ParisBlock.cc.
References _mode.
Referenced by computeReceive(), and setCommunicator().
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
| bool ParisBlock::setServerConfiguration | ( | const PaCO::PacoTopology_t & | stopo | ) |
|
pure virtualinherited |
Implemented in BasicBC, Controlled, Identity, GaBro, and ParisBasicExample.
Referenced by PaCO_operation::configureTopo().
|
private |
Definition at line 13 of file ParisBlock.h.
Referenced by computeReceive(), computeSend(), ParisBlock(), and setClientConfiguration().
|
private |
Definition at line 20 of file ParisBlock.h.
Referenced by computeReceive(), and computeSend().
|
private |
Definition at line 23 of file ParisBlock.h.
Referenced by computeReceive(), getResult(), ParisBlock(), and ~ParisBlock().
|
private |
Definition at line 22 of file ParisBlock.h.
Referenced by setFabric(), and ~ParisBlock().
|
private |
Definition at line 15 of file ParisBlock.h.
Referenced by computeSend(), and setGlobalDataConfiguration().
|
private |
Definition at line 18 of file ParisBlock.h.
Referenced by computeReceive(), computeSend(), and setLocalDataConfiguration().
|
private |
Definition at line 12 of file ParisBlock.h.
Referenced by computeReceive(), computeSend(), getMode(), and setMode().
|
private |
Definition at line 28 of file ParisBlock.h.
Referenced by computeReceive(), computeSend(), getConfig(), ParisBlock(), and setConfig().
|
private |
Definition at line 25 of file ParisBlock.h.
Referenced by computeReceive().
|
private |
Definition at line 14 of file ParisBlock.h.
Referenced by computeReceive(), computeSend(), ParisBlock(), and setServerConfiguration().
|
private |
Definition at line 24 of file ParisBlock.h.
Referenced by computeReceive(), ParisBlock(), reset(), and ~ParisBlock().