MPI on the command line:
oxl -DMPI mymain.oxIf the shared CFMPI library cannot be found link error will be produced.
MPI and your program includes CFMPI then a set of "fake" versions of the
routines will be included. Your program will execute serially and calls to these functions end up in messages
staying in the buffer.
MPI_Double).| Variables | ||
| static | ||
| static | ||
| Functions | ||
Gather in place all messages at all nodes: interface for MPI_Allgather(). |
||
| Gather variable length messages . | ||
| Vector sum messages at all nodes in place. | ||
Make all nodes wait until this point is reached: interface to MPI_Barrier(). |
||
Broadcast a message to all nodes: interface to MPI_Bcast(). |
||
| Gather all buffers at the client. | ||
| Gather variable length messages. | ||
Initialize the MPI environment: interface for MPI_Init(). |
||
Receive a message: interface for MPI_Recv(). |
||
Send a message: interface for MPI_Send(). |
||
| Set the displacement amount for variable length gather. | ||
| Vector sum messages at client. | ||
MPI_Allgather().
| iCount | integer, 0 send whole buffer otherwise send first iCount elements |
| Buffer | address |
| Buffer | address |
| iCount | integer, 0 send whole buffer otherwise send first iCount elements |
MPI_Barrier().
MPI_Bcast().
| Buffer | address, message to broadcast to all nodes |
| iCount | integer, 0 send whole buffer otherwise send first iCount elements |
| Buffer | address |
| iCount | integer, 0 send whole buffer otherwise send first iCount elements |
| Buffer | address, |
MPI_Init().
The external C routine calls MPI_Initialize() and stores key data in static C variables.
| aId | address, the MPI Rank or ID of this node returned |
| aNodes | address, the number of nodes returned |
| aANY_TAG | address, the integer tag for ANY_TAG in this MPI implementation returned
|
| aANY_SOURCE | addresss, the integer tag for ANY_SOURCE in this MPI implementation returned. |
MPI_Recv().
| aBuffer | address, vector message to send |
| iSource | integer, ID of node to receive from (can be ANY_SOURCE)
|
| iTag | iteger, tag of message to receive (can be ANY_TAG)
|
| oSource | address actual source ID returned |
| oTag | address actual tag returned |
| oError | address error code returned |
MPI_Send().
| Buffer | vector message to send |
| iCount | integer, 0 send the whole buffer otherwise only send the first iCount elements
|
| iDest | integer, ID of node to send message to |
| iTag | integer, tag to accompany message. |
| iCount | integer |
| Buffer | address |
| iCount | integer, 0 send whole buffer otherwise send first iCount elements |