12
PRESENTED BY: HANIS SALWAN BINTI MOBIDIN (2012144449) NIK FATINAH BINTI N. MOHD FARID (2012790807) Assignment 4: Point-to-point Communication (Finding Maximum Value)

Point o Point Communication for finding max value

Embed Size (px)

Citation preview

Page 1: Point o Point Communication for finding max value

P R E S E N T E D B Y :

H A N I S S A L W A N B I N T I M O B I D I N

( 2 0 1 2 1 4 4 4 4 9 )

N I K F A T I N A H B I N T I N . M O H D F A R I D ( 2 0 1 2 7 9 0 8 0 7 )

Assignment 4:Point-to-point Communication

(Finding Maximum Value)

Page 2: Point o Point Communication for finding max value

Point to Point Communication

Point to point communication is the simplest form of message passing.

A message is sent from sending processor to a receiving processor.

This assignment is about Synchronous communication, which means the communication does not complete until the message has been received.

Page 3: Point o Point Communication for finding max value

Generate Random Array on Root

Page 4: Point o Point Communication for finding max value

Distribute Array to other Slave Processes

Page 5: Point o Point Communication for finding max value

Find Max at Process 1

Page 6: Point o Point Communication for finding max value

Find Max at Process 2

Page 7: Point o Point Communication for finding max value

Find Max at Process 3

Page 8: Point o Point Communication for finding max value

Find Final Maximum Value at Process 0

Page 9: Point o Point Communication for finding max value

Output 1

Page 10: Point o Point Communication for finding max value

Output 2

Page 11: Point o Point Communication for finding max value

Illustration of the program

Page 12: Point o Point Communication for finding max value

References

https://inventorsworkshop.wikispaces.com/file/view/Finding%20Maximums%20with%20MPI-%20Tutorial.pdf/376845822/Finding%20Maximums%20with%20MPI-%20Tutorial.pdf.

http://msdn.microsoft.com/en-us/library/vstudio/kak4h79y

http://www.osl.iu.edu/research/mpi.net/documentation/reference/0.5.0/html/T_MPI_Intercommunicator.htm