AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Public Member Functions
Aqua::CalcServer::MPISync::Receiver Class Reference

Synchronize arrays between processes. More...

#include <CalcServer/MPISync.h>

Inheritance diagram for Aqua::CalcServer::MPISync::Receiver:
Inheritance graph
[legend]
Collaboration diagram for Aqua::CalcServer::MPISync::Receiver:
Collaboration graph
[legend]

Public Member Functions

 Receiver (const std::string name, InputOutput::ArrayVariable *mask, const std::vector< InputOutput::ArrayVariable * > fields, const std::vector< void * > field_hosts, const unsigned int proc, InputOutput::UIntVariable *n_offset)
 
 ~Receiver ()
 
void execute (void)
 Receive the information.
 
- Public Member Functions inherited from 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)
 
 ~Exchanger ()
 
const std::string name ()
 Parent tool name.
 

Additional Inherited Members

- Static Public Member Functions inherited from Aqua::CalcServer::MPISync::Exchanger
static const MPIType typeToMPI (std::string t)
 MPI type descriptor.
 
- Protected Attributes inherited from Aqua::CalcServer::MPISync::Exchanger
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.
 

Detailed Description

Synchronize arrays between processes.

Constructor & Destructor Documentation

◆ Receiver()

Aqua::CalcServer::MPISync::Receiver::Receiver ( const std::string  name,
InputOutput::ArrayVariable mask,
const std::vector< InputOutput::ArrayVariable * >  fields,
const std::vector< void * >  field_hosts,
const unsigned int  proc,
InputOutput::UIntVariable n_offset 
)

Constructor

Parameters
nameThe same name that the owner tool (See Aqua::CalcServer::MPISync)
maskIncoming data process mask
fieldsFields to store the incoming data
field_hostsAllocated host memory to temporary copy the incoming data, which will be uploaded to the computational device afterwards
procProcess from which the data shall be received
n_offsetVariable where the number of already received particles should be stored.

◆ ~Receiver()

Aqua::CalcServer::MPISync::Receiver::~Receiver ( )

Destructor.

Member Function Documentation

◆ execute()

void Aqua::CalcServer::MPISync::Receiver::execute ( void  )

Receive the information.


The documentation for this class was generated from the following file: