







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
During the course of work of the Parallel and Distributed Computing we learn the core of the programming. The main points disucss in these lecture slides are:Message Passing Programming, Message-Passing Model, Message Passing Interface, Parallel Virtual Machine, Circuit Satisfiability, Solution Method, Functional Decomposition, Embarrassingly Parallel
Typology: Slides
1 / 47
This page cannot be seen from the preview
Don't miss anything!








































Chapter 4
Task/Channel Message-passing
Task Process
Explicit channels Message communication
1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Not satisfied
0
Embarrassingly parallel: No channels between tasks
*int main (int argc, char argv[]) { int i; int id; / Process rank / int p; / Number of processes / void check_circuit (int, int);
Include argc and argv : they are needed
to initialize MPI
One copy of every variable for each process
running this program
MPI_Init (&argc, &argv);
MPI_COMM_WORLD
Communicator
0
2 1
3
4
5
Processes
Ranks
Communicator Name
second argument
MPI_Comm_size (MPI_COMM_WORLD, &p);