C++ mpi module for stochmagnet_main Package
Public Member Functions | Static Public Member Functions | List of all members
MPI_CoreToCoreWMessage< T > Class Template Reference

This class is a class to send / receive blocking message from one to core to one core. More...

#include <MPI_CoreToCoreWMessage.h>

Inheritance diagram for MPI_CoreToCoreWMessage< T >:
Inheritance graph
[legend]
Collaboration diagram for MPI_CoreToCoreWMessage< T >:
Collaboration graph
[legend]

Public Member Functions

 MPI_CoreToCoreWMessage ()
 create
 
virtual ~MPI_CoreToCoreWMessage (void)
 destroy
 
virtual tMemSize getMemorySize () const override
 return the memory size of the class
 
virtual tMemSize getContentsMemorySize () const override
 return nthe memory size of the included associations More...
 
virtual void send (const MPI_Environment &env, const tMPICoreId &dstCore, const std::valarray< T > &data, const tMPITag &tag) override
 sending a data with flag to dstCore More...
 
virtual void send (const MPI_Environment &env, const tMPICoreId &dstCore, const T *data, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag) override
 blocking send a data with tag to dstCore More...
 
virtual void receive (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &tag) override
 receiving a data with flag to dstCore More...
 
virtual void receive (const MPI_Environment &env, const tMPICoreId &dstCore, T *buffer, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag) override
 blocking send a data with tag to dstCore More...
 
virtual void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T &sentData, const tMPITag &sentTag, T &receivedData, const tMPITag &receivedTag, tMPIStatus &status)
 receiving a data with flag to dstCore More...
 
virtual void sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T &sentData, const tMPITag &sentTag, T &receivedData, const tMPITag &receivedTag) override
 receiving a data with flag to dstCore More...
 
virtual void sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const std::valarray< T > &sentData, const tMPITag &sentTag, std::valarray< T > &receivedData, const tMPITag &receivedTag) override
 receiving a data with flag to dstCore More...
 
virtual void sendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T *sentData, const tMPICount &nSentData, const tMPIType &sentDataType, const tMPITag &sentTag, T *receivedData, const tMPICount &nReceivedData, const tMPIType &receivedDataType, const tMPITag &receivedTag) override
 receiving a data with flag to dstCore More...
 
virtual void exchange (const MPI_Environment &env, const tMPICoreId &dstCore, std::valarray< T > &data, const tMPITag &tag) override
 receiving a data with flag to dstCore More...
 
void GetElementsNumber (const tMPIStatus &status, tMPICount &nElements)
 get the number of elements in the message with status More...
 
virtual void getElementsNumber (tMPICount &nElements) override
 get the number of element of the message More...
 
virtual int wait () override
 wait the end of the message return 0 : do not wait
 
virtual tBoolean isFinished () override
 test if the communication is fnished More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 
virtual tString toString () const
 return the string representation of the object node More...
 

Static Public Member Functions

static CORE_UniquePointer< SelfClassNew ()
 create an unique instance of the class This More...
 
static void Send (const MPI_Environment &env, const tMPICoreId &dstCore, const T &data, const tMPITag &tag)
 blocking send a data with tag to dstCore More...
 
static void Send (const MPI_Environment &env, const tMPICoreId &dstCore, const T *data, const tMPICount &nData, const tMPITag &tag)
 blocking send a data with tag to dstCore More...
 
static void Send (const MPI_Environment &env, const tMPICoreId &dstCore, const std::valarray< T > &data, const tMPITag &tag)
 blocking send a data with tag to dstCore More...
 
static void Send (const MPI_Environment &env, const tMPICoreId &dstCore, const T *data, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag)
 blocking send a data with tag to dstCore More...
 
static tBoolean Receive (const MPI_Environment &env, const tMPICoreId &srcCore, T &data, const tMPITag &tag)
 blocking receive a data with tag from source core More...
 
static void Receive (const MPI_Environment &env, const tMPICoreId &srcCore, T *buffer, const tMPICount &nData, const tMPITag &tag)
 blocking receive a data with tag from srcCore More...
 
static tBoolean Receive (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &tag)
 receive a data with tag from source core More...
 
static tBoolean Receive (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &tag, tMPIStatus &status)
 receive a data with tag from source core More...
 
static tBoolean Receive (const MPI_Environment &env, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPIInteger &nData, const tMPITag &tag, tMPIStatus &status)
 receive a data with tag from source core More...
 
static void Receive (const MPI_Environment &env, const tMPICoreId &dstCore, T *buffer, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag, tMPIStatus &status)
 blocking send a data with tag to dstCore More...
 
static void Receive (const MPI_Environment &env, const tMPICoreId &dstCore, T *buffer, const tMPICount &nData, const tMPIType &dataType, const tMPITag &tag)
 blocking send a data with tag to dstCore More...
 
static void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const T *sentData, const int &nSentData, const tMPITag &sentTag, T *receivedData, const int &nReceivedData, const tMPITag &receivedTag)
 blocking swapping a data with tag to dst Core and receive a data from src core More...
 
static void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const std::valarray< T > &sentData, const tMPITag &sentTag, std::valarray< T > &receivedData, const tMPITag &receivedTag, tMPIStatus &status)
 blocking swapping a data with tag to dst Core and receive a data from src core More...
 
static void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T *sentData, const tMPICount &nSentData, const tMPIType &sentDataType, const tMPITag &sentTag, T *receivedData, const tMPICount &nReceivedData, const tMPIType &receivedDataType, const tMPITag &receivedTag, MPI_Status &status)
 receiving a data with flag to dstCore More...
 
static void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, const T *sentData, const tMPICount &nSentData, const tMPIType &sentDataType, const tMPITag &sentTag, T *receivedData, const tMPICount &nReceivedData, const tMPIType &receivedDataType, const tMPITag &receivedTag)
 receiving a data with flag to dstCore More...
 
static void SendNReceive (const MPI_Environment &env, const tMPICoreId &dstCore, const T *sentData, const tMPICount &nSentData, const tMPIType &sentDataType, const tMPITag &sentTag, T *receivedData, const tMPICount &nReceivedData, const tMPIType &receivedDataType, const tMPITag &receivedTag)
 receiving a data with flag to dstCore More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, T *data, const int &nData, const tMPITag &sentTag, const tMPITag &receivedTag, MPI_Status &status)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, T *data, const int &nData, const tMPITag &sentTag, const tMPITag &receivedTag, MPI_Status &status)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, T *data, const int &nData, const tMPITag &tag)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, const tMPICoreId &srcCore, std::valarray< T > &data, const tMPITag &sendTag, const tMPITag &receivedTag)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, std::valarray< T > &data, const tMPITag &tag, tMPIStatus &status)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, std::valarray< T > &data, const tMPITag &tag)
 blocking sending a data with tag to dst Core and receive a data from src core in the same location data More...
 
static void Exchange (const MPI_Environment &env, const tMPICoreId &dstCore, T *data, const int &nData, const tMPIType &dataType, const tMPITag &tag)
 blocking sending a data with tag to dst Core and receive a data from dst core in the same location data More...
 
static void GetElementsNumber (const MPI_Environment &env, const tMPICoreId &srcCore, const tMPITag &tag, tMPIStatus &status, tMPICount &nElements)
 get the elements number of the sending message before receiving it More...
 
- Static Public Member Functions inherited from MPI_CoreToCoreMessage< T >
static tULLInt WaitAllMessages (const std::vector< CORE_UniquePointer< MPI_CoreToCoreMessage< T >>> &messages)
 wait for the end of communication of all messages More...
 
- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 

Additional Inherited Members

- Protected Member Functions inherited from MPI_CoreToCoreMessage< T >
 MPI_CoreToCoreMessage ()
 create
 
virtual ~MPI_CoreToCoreMessage (void)
 destroy
 
- Protected Member Functions inherited from MPI_Object
 MPI_Object (void)
 create
 
virtual ~MPI_Object (void)
 destroy
 
- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 

Detailed Description

template<typename T>
class MPI_CoreToCoreWMessage< T >

This class is a class to send / receive blocking message from one to core to one core.

Template Parameters
T: type of message to exchange
Author
Stephane Despreaux
Version
2.0

Member Function Documentation

◆ Exchange() [1/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
std::valarray< T > &  data,
const tMPITag &  sendTag,
const tMPITag &  receivedTag 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination core of the send data
[in]srcCoreid of the source core of the received data
[in,out]datadata to send & to receive
[in]sentTagtag of the data to sent
[in]receivedTagtag of the data to received

◆ Exchange() [2/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
T *  data,
const int &  nData,
const tMPITag &  sentTag,
const tMPITag &  receivedTag,
MPI_Status &  status 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination core of the send data from current core
[in]srcCoreid of the source core of the received data to current core
[in,out]datadata to send & to receive
[in]nDatanumber of data to send/receive
[in]sentTagtag of the data to sent
[in]receivedTagtag of the data to received
[out]statusstatus of the message

◆ Exchange() [3/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
T *  data,
const int &  nData,
const tMPITag &  tag 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination core of the send data from current core
[in]srcCoreid of the source core of the received data to current core
[in,out]datadata to send & to receive
[in]nDatanumber of data to send/receive
[in]tagtag of the communication

◆ Exchange() [4/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
std::valarray< T > &  data,
const tMPITag &  tag 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination/source core of the send/received data
[in,out]datadata to send / receive
[in]tagtag of the data to sent/receive

◆ exchange()

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
std::valarray< T > &  data,
const tMPITag &  tag 
)
inlineoverridevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]srcCoreid of the source core
[in,out]datadata to receive
[in]tagtag of the data

Implements MPI_CoreToCoreMessage< T >.

◆ Exchange() [5/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
std::valarray< T > &  data,
const tMPITag &  tag,
tMPIStatus &  status 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination/source core of the send/received data
[in,out]datadata to send / receive
[in]tagtag of the data to sent/receive
[out]status: status of the message

◆ Exchange() [6/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
T *  data,
const int &  nData,
const tMPITag &  sentTag,
const tMPITag &  receivedTag,
MPI_Status &  status 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from src core in the same location data

Parameters
[in]env: environment of the cores
[in]dstCoreid of the destination/source core of the send/received data from/to current core
[in,out]datadata to send & to receive
[in]nDatanumber of data to send/receive
[in]sentTagtag of the data to sent
[in]receivedTagtag of the data to received
[out]statusstatus of the message

◆ Exchange() [7/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Exchange ( const MPI_Environment env,
const tMPICoreId &  dstCore,
T *  data,
const int &  nData,
const tMPIType &  dataType,
const tMPITag &  tag 
)
inlinestatic

blocking sending a data with tag to dst Core and receive a data from dst core in the same location data

Parameters
[in]envenvironment of the source & dst Core
[in]dstCoreid of the destination core of the send data
[in]datadata to send & to receive
[in]nDatanumber of data to send/receive
[in]dataType: type of data
[in]tagtag of the data to sent and receive

◆ getContentsMemorySize()

template<typename T >
virtual tMemSize MPI_CoreToCoreWMessage< T >::getContentsMemorySize ( ) const
inlineoverridevirtual

return nthe memory size of the included associations

Returns
the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb

Reimplemented from MPI_CoreToCoreMessage< T >.

◆ GetElementsNumber() [1/2]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::GetElementsNumber ( const MPI_Environment env,
const tMPICoreId &  srcCore,
const tMPITag &  tag,
tMPIStatus &  status,
tMPICount &  nElements 
)
inlinestatic

get the elements number of the sending message before receiving it

Parameters
[in]envenvironment of the core
[in]srcCoreid of the source core which send the message
[in]tag: tag of the sending message
[out]status: status of the message
[out]Elements: number of elements of the message return the number of elements of the sent message of size T

◆ GetElementsNumber() [2/2]

template<typename T >
void MPI_CoreToCoreWMessage< T >::GetElementsNumber ( const tMPIStatus &  status,
tMPICount &  nElements 
)
inline

get the number of elements in the message with status

Parameters
[in]status: status of the message
[out]nElementsnumber of elements within the message of type T

◆ getElementsNumber()

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::getElementsNumber ( tMPICount &  nElements)
inlineoverridevirtual

get the number of element of the message

Parameters
[out]nElements: number of elemet of type T

Implements MPI_CoreToCoreMessage< T >.

◆ isFinished()

template<typename T >
virtual tBoolean MPI_CoreToCoreWMessage< T >::isFinished ( )
inlineoverridevirtual

test if the communication is fnished

Returns
true

Implements MPI_CoreToCoreMessage< T >.

◆ New()

template<typename T >
static CORE_UniquePointer<SelfClass> MPI_CoreToCoreWMessage< T >::New ( )
inlinestatic

create an unique instance of the class This

Returns
a new unique instance of the class This

◆ Receive() [1/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
T *  buffer,
const tMPICount &  nData,
const tMPIType &  dataType,
const tMPITag &  tag 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]bufferadress of the buffet to receive data
[in]nDatanumber of dataType to receive
[in]dataTypedata type
[in]tagtag of the data

◆ receive() [1/2]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::receive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
T *  buffer,
const tMPICount &  nData,
const tMPIType &  dataType,
const tMPITag &  tag 
)
inlineoverridevirtual

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]bufferadress of the buffet to receive data
[in]nDatanumber of dataType to receive
[in]dataTypedata type
[in]tagtag of the data

Implements MPI_CoreToCoreMessage< T >.

◆ Receive() [2/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
T *  buffer,
const tMPICount &  nData,
const tMPIType &  dataType,
const tMPITag &  tag,
tMPIStatus &  status 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]bufferadress of the buffet to receive data
[in]nDatanumber of dataType to receive
[in]dataTypedata type
[in]tagtag of the data
[out]statusstatus of the communication

◆ Receive() [3/7]

template<typename T >
static tBoolean MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
std::valarray< T > &  data,
const tMPIInteger &  nData,
const tMPITag &  tag,
tMPIStatus &  status 
)
inlinestatic

receive a data with tag from source core

Parameters
[in]envenvironment of the source Core
[in]srcCoreid of the source core
[out]datadata to receive
[out]nData: number of data received
[in]tagtag of the data
[out]statusstatus of request

◆ Receive() [4/7]

template<typename T >
static tBoolean MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
std::valarray< T > &  data,
const tMPITag &  tag 
)
inlinestatic

receive a data with tag from source core

Parameters
[in]envenvironment of the source Core
[in]srcCoreid of the source core
[out]datadata to receive
[in]tagtag of the data

◆ receive() [2/2]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
std::valarray< T > &  data,
const tMPITag &  tag 
)
inlineoverridevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]srcCoreid of the source core
[in]datadata to receive
[in]tag: tag of the data

Implements MPI_CoreToCoreMessage< T >.

◆ Receive() [5/7]

template<typename T >
static tBoolean MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
std::valarray< T > &  data,
const tMPITag &  tag,
tMPIStatus &  status 
)
inlinestatic

receive a data with tag from source core

Parameters
[in]envenvironment of the source Core
[in]srcCoreid of the source core
[out]datadata to receive
[in]tagtag of the data
[out]statusstatuc of the communication

◆ Receive() [6/7]

template<typename T >
static tBoolean MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
T &  data,
const tMPITag &  tag 
)
inlinestatic

blocking receive a data with tag from source core

Parameters
[in]envenvironment of the source Core
[in]srcCoreid of the source core
[out]datadata to receive
[in]tagtag of the data

◆ Receive() [7/7]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Receive ( const MPI_Environment env,
const tMPICoreId &  srcCore,
T *  buffer,
const tMPICount &  nData,
const tMPITag &  tag 
)
inlinestatic

blocking receive a data with tag from srcCore

Parameters
[in]envenvironment of the source Core
[in]srcCoreid of the source core
[out]buffer: adress of the buffer to resize ndata of size(T)
[in]nDatanumber of data of type T to receive
[in]tagtag of the data

◆ Send() [1/4]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const std::valarray< T > &  data,
const tMPITag &  tag 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]datadata to send
[in]tagtag of the data

◆ send() [1/2]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const std::valarray< T > &  data,
const tMPITag &  tag 
)
inlineoverridevirtual

sending a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]datadata to send
[in]tag: tag of the sending message

Implements MPI_CoreToCoreMessage< T >.

◆ Send() [2/4]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T &  data,
const tMPITag &  tag 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]datadata to send
[in]tagtag of the data

◆ Send() [3/4]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T *  data,
const tMPICount &  nData,
const tMPITag &  tag 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]datadata to send
[in]nDatanumber of type T of data to send
[in]tagtag of the data

◆ Send() [4/4]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::Send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T *  data,
const tMPICount &  nData,
const tMPIType &  dataType,
const tMPITag &  tag 
)
inlinestatic

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]buffer: buffer of the data
[in]nDatanumber of data of type dataType to send
[in]tagtag of the data

◆ send() [2/2]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::send ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T *  data,
const tMPICount &  nData,
const tMPIType &  dataType,
const tMPITag &  tag 
)
inlineoverridevirtual

blocking send a data with tag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination core
[in]buffer: buffer of the data
[in]nDatanumber of data of type dataType to send
[in]tagtag of the data

Implements MPI_CoreToCoreMessage< T >.

◆ SendNReceive() [1/6]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T *  sentData,
const int &  nSentData,
const tMPITag &  sentTag,
T *  receivedData,
const int &  nReceivedData,
const tMPITag &  receivedTag 
)
inlinestatic

blocking swapping a data with tag to dst Core and receive a data from src core

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination/source core of the send/received data from/to current core
[in]sentDatadata to send
[in]nSentDatanumber of data to send
[in]sentTagtag of the data
[in]receivedDatadata to send
[in]nReceivedDatanumber of data to send
[in]receivedTagtag of the data

◆ SendNReceive() [2/6]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const T *  sentData,
const tMPICount &  nSentData,
const tMPIType &  sentDataType,
const tMPITag &  sentTag,
T *  receivedData,
const tMPICount &  nReceivedData,
const tMPIType &  receivedDataType,
const tMPITag &  receivedTag 
)
inlinestatic

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst/src core to/from the sent/received data from/to current core
[in]sentDatadata to sent
[in]nSentDatanumber of data to sent
[in]sentDataTypetype of data to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]nReceivedDatanumber of data to receive
[in]receivedDataTypetype of data to receive
[in]receivedTagtag of the received message

◆ sendNReceive() [1/3]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::sendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const std::valarray< T > &  sentData,
const tMPITag &  sentTag,
std::valarray< T > &  receivedData,
const tMPITag &  receivedTag 
)
inlineoverridevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst Core of the sent data
[in]srcCoreid of the src Core of the received data
[in]sentDatadata to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]receivedTagtag of the received message

Implements MPI_CoreToCoreMessage< T >.

◆ SendNReceive() [3/6]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const std::valarray< T > &  sentData,
const tMPITag &  sentTag,
std::valarray< T > &  receivedData,
const tMPITag &  receivedTag,
tMPIStatus &  status 
)
inlinestatic

blocking swapping a data with tag to dst Core and receive a data from src core

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the destination/source core of the send/received data from/to current core
[in]sentDatadata to send
[in]nSentDatanumber of data to send
[in]sentTagtag of the data
[in]receivedDatadata to send
[in]nReceivedDatanumber of data to send
[in]receivedTagtag of the data
[out]status: status of the message

◆ sendNReceive() [2/3]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::sendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const T &  sentData,
const tMPITag &  sentTag,
T &  receivedData,
const tMPITag &  receivedTag 
)
inlineoverridevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst Core of the sent data
[in]srcCoreid of the src Core of the received data
[in]sentDatadata to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]receivedTagtag of the received message

Implements MPI_CoreToCoreMessage< T >.

◆ SendNReceive() [4/6]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const T &  sentData,
const tMPITag &  sentTag,
T &  receivedData,
const tMPITag &  receivedTag,
tMPIStatus &  status 
)
inlinevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst Core of the sent data
[in]srcCoreid of the src Core of the received data
[in]sentDatadata to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]receivedTagtag of the received message

◆ SendNReceive() [5/6]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const T *  sentData,
const tMPICount &  nSentData,
const tMPIType &  sentDataType,
const tMPITag &  sentTag,
T *  receivedData,
const tMPICount &  nReceivedData,
const tMPIType &  receivedDataType,
const tMPITag &  receivedTag 
)
inlinestatic

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst Core of the sent data
[in]srcCoreid of the src Core of the received data
[in]sentDatadata to sent
[in]nSentDatanumber of data to sent
[in]sentDataTypetype of data to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]nReceivedDatanumber of data to receive
[in]receivedDataTypetype of data to receive
[in]receivedTagtag of the received message

◆ sendNReceive() [3/3]

template<typename T >
virtual void MPI_CoreToCoreWMessage< T >::sendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const T *  sentData,
const tMPICount &  nSentData,
const tMPIType &  sentDataType,
const tMPITag &  sentTag,
T *  receivedData,
const tMPICount &  nReceivedData,
const tMPIType &  receivedDataType,
const tMPITag &  receivedTag 
)
inlineoverridevirtual

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst core to the sent data from current core
[in]srcCoreid of the src core from the received data to current core
[in]sentDatadata to sent
[in]nSentDatanumber of data to sent
[in]sentDataTypetype of data to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]nReceivedDatanumber of data to receive
[in]receivedDataTypetype of data to receive
[in]receivedTagtag of the received message

Implements MPI_CoreToCoreMessage< T >.

◆ SendNReceive() [6/6]

template<typename T >
static void MPI_CoreToCoreWMessage< T >::SendNReceive ( const MPI_Environment env,
const tMPICoreId &  dstCore,
const tMPICoreId &  srcCore,
const T *  sentData,
const tMPICount &  nSentData,
const tMPIType &  sentDataType,
const tMPITag &  sentTag,
T *  receivedData,
const tMPICount &  nReceivedData,
const tMPIType &  receivedDataType,
const tMPITag &  receivedTag,
MPI_Status &  status 
)
inlinestatic

receiving a data with flag to dstCore

Parameters
[in]envenvironment of the destination Core
[in]dstCoreid of the dst Core of the sent data
[in]srcCoreid of the src Core of the received data
[in]sentDatadata to sent
[in]nSentDatanumber of data to sent
[in]sentDataTypetype of data to sent
[in]sentTagtag of thesent message
[in]receivedDatadata to receive
[in]nReceivedDatanumber of data to receive
[in]receivedDataTypetype of data to receive
[in]receivedTagtag of the received message
[out]status: stauc of the communication

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