MPI Subroutine Synopses

The subroutines described here are those only used in the examples, not exhaustive.

mpi_address(location,address,ierr)
Gets a byte address of location.
mpi_bcast(buf,count,datatype,root,comm,ierr)
The root processor broadcasts buf to all processors in the communicator, and all other processors in the communicator store the received data into buf.
mpi_comm_rank(comm,rank,ierr)
Gets a rank of processor.
mpi_comm_size(comm,size,ierr)
Gets the number of processors in the communicator.
mpi_finalize(ierr)
Finalizes MPI. MPI subroutines should be called before this statement.
mpi_gather(sendbuf,sendcounts,sendtype,recvbuf,recvcounts,recvtype,root,comm,ierr)
Gathers the data sent by each processor to the root processor. The data sent by Ip-th processor are stored to the location next to the location of the data sent by the (Ip-1)-th processor. Sendcounts/sendtype and recvcounts/recvtype should be the same for all processors.
mpi_init(ierr)
Initializes MPI. MPI subroutines should be called after this statement.
mpi_irecv(buf,count,datatype,source,tag,comm,request,ierr)
Non-blocking version of mpi_recv. Mpi_wait gets informations of the received data [status(mpi_status_size)] after it confirms data reception.
mpi_isend(buf,count,datatype,dest,tag,comm,request,ierr)
Non-blocking version of mpi_send.
mpi_recv(buf,count,datatype,source,tag,comm,status,ierr)
Receives the data sent from the source processor, and stores it into buf. The corresponding mpi_send should have the same message tag. Status(mpi_status_size) records informations of the received data, such as the source processor rank, the message tag, and the error code, etc.
mpi_reduce(operand,result,count,datatype,operator,root,comm,ierr)
Operates operator on operands on each processor. An operator can be the predefined reduction operation (mpi_sum, mpi_max, mpi_min etc.) or a user defined operation.
mpi_send(buf,count,datatype,dest,tag,comm,ierr)
Sends buf to the dest processor. The corresponding mpi_recv should have the same message tag.
mpi_sendrecv(sendbuf,sendcount,sendtype,dest,sendtag,recvbuf,recvcount,recvtype,source,recvtag,comm,status,ierr)
Combination of mpi_send and mpi_recv.
mpi_type_commit(newtype,ierr)
Commits newtype. Newtype is available after committing.
mpi_type_struct((count,sizes,displacements,types,newtype,ierr)
Constructs a derivative type of the group of data defined by count, sizes, displacements, types.
mpi_wait(request,status,ierr)
Waits until the corresponding non-blocking subroutine having the same request tag ends.

Written by "Ryusuke NUMATA" <rnumata at umd.edu>
http://www.glue.umd.edu/~rnumata/
Last modified: $Date: 2008-10-07 13:33:31 -0400 (Tue, 07 Oct 2008) $

Valid XHTML 1.0 Strict