






































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
A chapter from a computer science textbook focusing on the fundamental concepts of communication operations in parallel systems. It covers topics such as nearest neighbor and remote node communication, cut-through routing, one-to-one, one-to-all, all-to-all, and all-to-one communication, as well as commonly used interconnections like linear array, two-dimensional mesh, and hypercube. The document emphasizes the importance of efficiently implementing these communication operations on various parallel architectures.
Typology: Study notes
1 / 46
This page cannot be seen from the preview
Don't miss anything!







































Chapter 5: CS
Jun Zhang
Laboratory for High Performance Computing & Computer Simulation
Department of Computer Science
University of KentuckyLexington, KY 40506
Chapter 5: CS
Chapter 5: CS
Chapter 5: CS
5.1d: Mesh Topology ^
A large number of processors can be connectedrelatively inexpensively with mesh topology ^
Many applications map naturally onto a meshnetwork ^
The disadvantage of high diameter of meshtopology can be diminished for networks with cut-through routing ^
Several commercially available parallel computersare based on mesh network ^
T3D, SGI, IBM Blue Gene
Chapter 5: CS
5.2a: Basic Assumptions
Chapter 5: CS
5.2b: Dual Operations
Chapter 5: CS
5.3b: Ring Network
0
1
2
4 3
5
6
7
Message of size
m
at node 0, to be sentto all other nodes inthe networkNaïve algorithmBetter algorithmFast algorithmRecursive doubling
Chapter 5: CS
5.3c: Mesh Network
0
1
2
3
4
7
6
5
8
9
10
15 11
14
13
12
One
-^
to-^
all broadcast in
a 2D mesh can beperformed in two steps,each step is a one
-^
to- a
ll
broadcast using the ringalgorithm
Chapter 5: CS
5.3e: Balanced Binary Tree
Only the root nodes areprocessing nodes,map the hypercubealgorithm directly
Chapter 5: CS
If we assume cut-through routing and ignore the perhop time, all one-to-all broadcast communicationscan be viewed as log
p
steps of point-to-point
communications. ^
The communication cost for all networks is the same:
comm
s^
w
Chapter 5: CS
5.4b: Ring and Linear Array ^
All-to-all broadcast is achieved by a pipelined point-to-point nearest neighbor communication ^
For linear array, bi-directional link is necessary ^
For all-to-all reduction, the procedure is reversed,each node needs to perform the operation at eachstep ^
The total communication cost is:
(
)(
T
t^
t m
p
=
−
Chapter 5: CS
5.4c: All-to-All on a Ring Network
0
1
2
4 3
5
6
7
Chapter 5: CS
0
1
2
3
4
7
6
5
8
9
10
15 11
14
13
12
Chapter 5: CS
5.4f: Cost of 2D Mesh All-to-All ^
In the first phase, the message size is
m
, the
number of links is ^
In the second phase, the message size is
and the number of links is ^
The total communication cost is the sum of bothphases:
(^
)(
(^
)(
2 (
(^
comm
s^
w^
s^
w
s^
w
t^
t^
t m
p
t^
t m
p
p
t^
p
t m p
=
−
−
=
−
−
m
p
(^
p^
−
(^
p^
−