Sunday, May 8, 2011

Intro to MPI


So here are some basic MPI functions that are needed for parallel computers in a cluster setup
MPI_Init
Used to initialize MPI. Without this none of the other commands will work.
MPI_Comm_rank
Gets the rank of a processor from 0 - p, where p is the total number of processors.
MPI_Comm_size
Get the total number of processes available for computing.
MPI_Send
Send a message. Messages are passed as array data, you can specify the size of an array.
MPI_Recv
Complement to MPI_Send.
MPI_Finalize
Called when program is done running. Cleans up memory to avoid leaks.
Sample intro program next post

12 comments: