Collective message passing, Computer Networking

In collective message passing, all the processes of a set participate in communication. MPI gives a number of functions to execute the collective message passing. Some of them are being discussed here.

MPI_Bcast(msgaddr, count, datatype, rank, comm):

This function is used by a procedure ranked rank in set comm to broadcast the message to all the members (including self) in the group.

MPI_Allreduce

MPI_Scatter(Sendaddr, Scount, Sdatatype, Receiveaddr, Rcount, Rdatatype, Rank, Comm):

Using this function process with rank rank in set comm sends personalized message to all the processes (including self) and sorted message (according to the rank of sending processes) are stored in the send buffer of the process. Starting three parameters define buffer of sending process and next three describe buffer of receiving process.

MPI_Gather (Sendaddr, Scount, Sdatatype, Receiveaddr, Rcount, Rdatatype,Rank, Comm):

By Using this function procedure with rank rank in group comm receives personalized message from all the processes (including self) and sorted message (according to the rank of sending processes) are stored in the receive buffer of the process. First three parameters define buffer of sending process and next three define buffer of receiving process.

MPI_Alltoall()

Every process sends a personalized message to each other process in the group.

MPI_Reduce (Sendaddr , Receiveaddr , count, datatype, op, rank, comm):

This function minimizes the partial values stored in Sendaddr of every process into a final result and stores it in Receiveaddr of the process with rank rank. op specifies the decrease operator.

MPI_Scan (Sendaddr,, Receiveaddr , count, datatype, op, comm):

It joins the partial values into p final results which are received into the Receiveaddr of all p processes in the set comm.

MPI_Barrier(cmm):

This function synchronises every processes in the set comm.

Posted Date: 3/2/2013 7:12:02 AM | Location : United States







Related Discussions:- Collective message passing, Assignment Help, Ask Question on Collective message passing, Get Answer, Expert's Help, Collective message passing Discussions

Write discussion on Collective message passing
Your posts are moderated
Related Questions
BRIDGES:  A bridge is a hardware device also needed to connect two LAN code segments to extend a LAN. A bridge uses two NICs to connect two code segments. It listens to all tr

Q. What do you mean by Flow Control? - How much data sender is capable to transmit before receiving the ACK - Why flow control? - Limitation with receiver 1. Processin

What are reasons behind using layered protocols  Reasons for using layered protocols, using them leads to breaking up design problem into smaller more manageable pieces and lay

Speed Up:- Speed up is the ratio of the time required to implement a given program using a definite algorithm on a machine with one processor (i.e. T (1) (where n=1)) to the ti

what are the main problems of signal propagation?why do radio waves not always follow a straight line?why is reflection both useful and harmful?

Q. What are the basic key functions of data link layer? Ans: Data link layer transfers data in a structured and reliable manner so that the service given by the physical layer

Most real-life applications are built on top of the UDP and TCP transport protocols. UDP, which stands for User Datagram Protocol, provides the capability of delivering individual

Gateway A device linked to multiple physical TCP/IP networks capable of routing or delivering IP packets among them. Router It's a layer 3 device that connects 2 diss

How to prevent the data from hackers In order to prevent intruders from entering the house, it is necessary for the house owner to look after the behaviour of internal and exte

What is Round Trip Time? The duration of time it takes to send a message from one end of a network to the other and back, is known as RTT.