Contains a dummy implementation of MPI subroutines for one thread. More...
Go to the source code of this file.
Typedefs | |
typedef std::map< int, void * > | Msg_Queue |
A map from message tags to data addresses. More... | |
Functions | |
static int | get_sizeof (MPI_Datatype i) throw (int) |
Get the size of a given MPI data type. More... | |
int | COM_send (Msg_Queue &sendQ, Msg_Queue &recvQ, void *buf, int count, MPI_Datatype datatype, int tag) |
int | COM_recv (Msg_Queue &sendQ, Msg_Queue &recvQ, void *buf, int count, MPI_Datatype datatype, int tag) |
int | COMMPI_Isend (void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request) |
Begins a nonblocking send. More... | |
int | COMMPI_Irecv (void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request *request) |
Begins a nonblocking receive. More... | |
Variables | |
static Msg_Queue * | sendQ =NULL |
static Msg_Queue * | recvQ =NULL |
Contains a dummy implementation of MPI subroutines for one thread.
If DUMMY_MPI is not define, it does produce anything. Note: This implementation is not thread-safe and it need not to be because it is only intended for a placeholder of MPI for one thread. It works even if MPI_Init was not called.
Definition in file commpi.C.
typedef std::map<int, void*> Msg_Queue |
int COM_recv | ( | Msg_Queue & | sendQ, |
Msg_Queue & | recvQ, | ||
void * | buf, | ||
int | count, | ||
MPI_Datatype | datatype, | ||
int | tag | ||
) |
Definition at line 88 of file commpi.C.
References get_sizeof().
Referenced by COMMPI_Irecv().
int COM_send | ( | Msg_Queue & | sendQ, |
Msg_Queue & | recvQ, | ||
void * | buf, | ||
int | count, | ||
MPI_Datatype | datatype, | ||
int | tag | ||
) |
Definition at line 68 of file commpi.C.
References get_sizeof().
Referenced by COMMPI_Isend().
int COMMPI_Irecv | ( | void * | buf, |
int | count, | ||
MPI_Datatype | datatype, | ||
int | src, | ||
int | tag, | ||
MPI_Comm | comm, | ||
MPI_Request * | request | ||
) |
Begins a nonblocking receive.
Definition at line 131 of file commpi.C.
References COM_recv(), and COMMPI_Initialized().
Referenced by Pane_communicator::begin_update(), and Pane_ghost_connectivity::send_pane_info().
int COMMPI_Isend | ( | void * | buf, |
int | count, | ||
MPI_Datatype | datatype, | ||
int | dest, | ||
int | tag, | ||
MPI_Comm | comm, | ||
MPI_Request * | request | ||
) |
Begins a nonblocking send.
Definition at line 112 of file commpi.C.
References COM_send(), and COMMPI_Initialized().
Referenced by Pane_communicator::begin_update(), and Pane_ghost_connectivity::send_pane_info().
|
static |
Get the size of a given MPI data type.
Definition at line 44 of file commpi.C.
Referenced by Attribute::allocate(), COM_get_sizeof(), COM_recv(), COM_send(), Attribute::copy_array(), Attribute::inherit(), io_hdf_data(), io_pane_attribute(), Roccom_base::set_f90pointer(), Attribute::set_pointer(), and write_attr_CGNS().