The remaining functions implemented by MPISIM have the following prototypes:
int MPI_Buffer_attach(void *buffer, int size) int MPI_Waitall(int count, MPI_Request *array_of_requests, MPI_Status *array_of_statuses) int MPI_Init(int *argc, char ***argv) int MPI_Finalize(void) int MPI_Comm_size(MPI_Comm comm, int *size) int MPI_Comm_rank(MPI_Comm comm, int *rank) int MPI_Abort(MPI_Comm comm, int errorcode) double MPI_Wtime(void)MPI_Buffer_attach provides to MPI a section of program memory that can be used for buffering outgoing messages. This call is discussed in more detail in Section 5.3.1.2. MPI_Waitall waits for an array of count operations to complete. The handles of the operations are contained in
and the status of the completed operations is returned in
.
MPI_Init initializes MPI and creates MPI_COMM_WORLD
and MPI_COMM_SELF. MPI_Finalize cleans up MPI state. No MPI
routine can be called after MPI_Finalize.
MPI_Comm_rank is used by a process to find
its rank in communicator comm. MPI_Comm_size is
used by a process to find the number of processes in communicator
comm. MPI_Abort
is used to abort all processes in communicator comm, and return
errorcode to the environment. Most implementations do not use
the communicator argument and simply abort MPI_COMM_WORLD i.e.
all processes. MPI_Wtime returns the wall clock time elapsed in seconds
since some fixed time in the past.