AQUAgpusph 4.1.2
|
Interprocess array synchronization base class. More...
#include <CalcServer/MPISync.h>
Data Structures | |
struct | MPIType |
Data structure to store the type information required by MPI. More... | |
Public Member Functions | |
Exchanger (const std::string name, InputOutput::ArrayVariable *mask, const std::vector< InputOutput::ArrayVariable * > fields, const std::vector< void * > field_hosts, const unsigned int proc) | |
~Exchanger () | |
const std::string | name () |
Parent tool name. | |
Static Public Member Functions | |
static const MPIType | typeToMPI (std::string t) |
MPI type descriptor. | |
Protected Attributes | |
InputOutput::ArrayVariable * | _mask |
Mask. | |
std::vector< InputOutput::ArrayVariable * > | _fields |
Field. | |
unsigned int | _proc |
Processor. | |
unsigned int | _n |
Total number of elements. | |
std::vector< void * > | _fields_host |
Host memory arrays to download, send, receive and upload the data. | |
Interprocess array synchronization base class.
This class is used to setup host storages for the send & receive operations, to provide some helper functions to translate
Aqua::CalcServer::MPISync::Exchanger::Exchanger | ( | const std::string | name, |
InputOutput::ArrayVariable * | mask, | ||
const std::vector< InputOutput::ArrayVariable * > | fields, | ||
const std::vector< void * > | field_hosts, | ||
const unsigned int | proc | ||
) |
Constructor
name | The same name that the owner tool (See Aqua::CalcServer::MPISync) |
mask | Already sorted mask |
fields | Already sorted fields |
field_hosts | Allocated host memory to temporary copy the data, while it is sent to another process or it is uploaded to the computational device either |
proc | Process to which the data shall be sent |
Aqua::CalcServer::MPISync::Exchanger::~Exchanger | ( | ) |
Destructor.
|
inline |
Parent tool name.
|
static |
MPI type descriptor.
t | Type string |
|
protected |
Field.
|
protected |
Host memory arrays to download, send, receive and upload the data.
|
protected |
Mask.
|
protected |
Total number of elements.
|
protected |
Processor.