SkelGIS
3.0
|
template communication Class More...
#include <communications.hpp>
Public Member Functions | |
Communications () | |
constructor | |
~Communications () | |
destructor | |
int | ISend (T *buf, int count, int dest) |
A non blocking MPI send is initialized. | |
int | IRecv (int count, int source) |
A non blocking MPI receive is initialized. | |
int | Wait_s (int dest) |
A MPI wait call to wait for the send exchange with a precise processor. | |
int | Wait_r (T *toRecv, int src, int count) |
A MPI wait call to wait for the send exchange with a precise processor. | |
Static Public Member Functions | |
static void | Exchanges (T *toSend, T *toGet, unsigned int size, int rank) |
used by get borders to make exchanges | |
Public Attributes | |
MPI_Request * | requests_s |
MPI_Request * | requests_r |
MPI_Status * | status_s |
MPI_Status * | status_r |
char ** | get |
template communication Class
This template class defines the MPI initializations, the MPI communications T is the type of data to exchange
Definition at line 19 of file communications.hpp.
static void skelgis::Communications< T >::Exchanges | ( | T * | toSend, |
T * | toGet, | ||
unsigned int | size, | ||
int | rank | ||
) | [inline, static] |
used by get borders to make exchanges
toGet | is the data to get from mpi process and omp thread |
toSend | is the data to send to mpi process and omp thread |
size | is the size of data to send and recv |
rank | is the mpi rank to exchange with |
Definition at line 32 of file communications.hpp.
int skelgis::Communications< T >::IRecv | ( | int | count, |
int | source | ||
) | [inline] |
A non blocking MPI receive is initialized.
count | is the number of elements to receive |
source | is the source processor |
Definition at line 136 of file communications.hpp.
int skelgis::Communications< T >::ISend | ( | T * | buf, |
int | count, | ||
int | dest | ||
) | [inline] |
A non blocking MPI send is initialized.
buf | is the sending buffer |
count | is the number of elements in the buffer |
dest | is the destination processor |
Definition at line 123 of file communications.hpp.
int skelgis::Communications< T >::Wait_r | ( | T * | toRecv, |
int | src, | ||
int | count | ||
) | [inline] |
A MPI wait call to wait for the send exchange with a precise processor.
dest | is the destination processor the send is waiting |
Definition at line 161 of file communications.hpp.
int skelgis::Communications< T >::Wait_s | ( | int | dest | ) | [inline] |
A MPI wait call to wait for the send exchange with a precise processor.
dest | is the destination processor the send is waiting |
Definition at line 149 of file communications.hpp.
MPI_Request* skelgis::Communications< T >::requests_r |
requests_s is the list of status for send communications (one for each processor)
Definition at line 80 of file communications.hpp.
MPI_Request* skelgis::Communications< T >::requests_s |
< requests_s is the list of requests for send communications (one for each processor) requests_s is the list of requests for receive communications (one for each processor)
Definition at line 78 of file communications.hpp.
MPI_Status* skelgis::Communications< T >::status_s |
requests_s is the list of status for receive communications (one for each processor)
Definition at line 82 of file communications.hpp.