|
FreeNOS
|
Represents a Message Passing Interface (MPI) implementation backend. More...
#include <MpiBackend.h>
Public Types | |
| typedef int | Result |
| Result code. More... | |
Public Member Functions | |
| virtual Result | initialize (int *argc, char ***argv)=0 |
| Initialize the backend. More... | |
| virtual Result | terminate ()=0 |
| Terminate the backend. More... | |
| virtual Result | getCommRank (MPI_Comm comm, int *rank)=0 |
| Retrieve communication rank (core id) More... | |
| virtual Result | getCommSize (MPI_Comm comm, int *size)=0 |
| Retrieve communication size (total cores) More... | |
| virtual Result | send (const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm)=0 |
| Synchronous send data. More... | |
| virtual Result | receive (void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status)=0 |
| Synchronous receive data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractFactory< MpiBackend > | |
| static MpiBackend * | create () |
| Abstract function to create an instance of T. More... | |
Represents a Message Passing Interface (MPI) implementation backend.
Definition at line 36 of file MpiBackend.h.
| typedef int MpiBackend::Result |
Result code.
The same MPI_* values of mpi.h are used for Result values
Definition at line 47 of file MpiBackend.h.
Retrieve communication rank (core id)
| comm | Communication reference |
| rank | Output the communication rank number |
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Comm_rank().
Retrieve communication size (total cores)
| comm | Communication reference |
| size | Output the communication size |
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Comm_size().
|
pure virtual |
Initialize the backend.
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Init().
|
pure virtual |
Synchronous receive data.
| buf | Output data buffer |
| count | Number of data items |
| datatype | Type of data |
| source | Source to receive data from (core id) |
| tag | Optional data identifier to receive |
| comm | Communication reference |
| status | Output the MPI status |
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Recv().
|
pure virtual |
Synchronous send data.
| buf | Input data buffer |
| count | Number of data items |
| datatype | Type of data |
| dest | Destination to send to (core id) |
| tag | Optional data identifier to send |
| comm | Communication reference |
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Send().
|
pure virtual |
Terminate the backend.
Implemented in MpiHost, and MpiTarget.
Referenced by MPI_Finalize().
1.8.17