






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
Prof. Bhairav Gupta delivered this lecture at Ankit Institute of Technology and Science for Parallel Processing course. It includes: Basic, Communication, Operations, Patterns, Topologies, Broadcast, Reduction, Scatter, Gather, Cost, Analysis
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







All-to-all broadcast and all-to-all reduction.
Simplest approach: perform
p
one-to-all broadcasts
This is not the most efficient way, though.
-^
Each node first sends to one of its neighbors thedata it needs to broadcast.
-^
In subsequent steps, it forwards the data receivedfrom one of its neighbors to its other neighbor.
-^
The algorithm terminates in
p-
steps.
-^
Generalization of the mesh algorithm to
log p
dimensions.
-^
Message size doubles at each of the
log p
steps.
-^
On a ring, the time is given by:
s^
w
-^
On a Torus, the time is given by:
w
-^
On a hypercube, we have:
Scatter and gather operations.
In the
scatter
operation, a single node sends a unique
message of size
m
to every other node (also called a
one-to-all personalized communication).
-^
In the
gather
operation, a single node collects a unique
message from each node.
-^
While the scatter operation is fundamentally differentfrom broadcast, the algorithmic structure is similar,except for differences in message sizes (messages getsmaller in scatter and stay constant in broadcast).
-^
The gather operation is exactly the inverse of the scatteroperation and can be executed as such.