Parallel Computers Networking PDF
Parallel Computers Networking PDF
Chapter 1
Parallel Computers
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-2
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-3
Examples
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-4
Weather Forecasting
Atmosphere modeled by dividing it into 3-dimensional cells.
Calculations of each cell repeated many times to model passage of
time.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-5
slides1-6
A galaxy might have, say, 1011 stars. Even if each calculation could
be done in 1 s (an extremely optimistic figure), it would take 109
years for one iteration using the N2 algorithm and almost a year for
one iteration using an efficient N log2 N approximate algorithm.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-7
slides1-8
Parallel Computing
Using more than one computer, or a computer with more than one
processor, to solve a problem.
Motives
Usually faster computation - very simple idea - that n computers
operating simultaneously can achieve the result n times faster - it
will not be n times faster for various reasons.
slides1-9
Background
Parallel computers - computers with more than one processor - and
their programming - parallel programming - has been around for
more than
40 years.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-10
slides1-11
Notation
p = number of processors or processes
n = number of dtata items (used later)
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-12
Speedup Factor
S(p) =
ts
Execution time using one processor (best sequential algorithm)
=
Execution time using a multiprocessor with p processors
tp
slides1-13
S(p) =
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-14
Maximum Speedup
Maximum speedup is usually p with p processors (linear speedup).
Possible to get superlinear speedup (greater than p) but usually a
specific reason such as:
Nondeterministic algorithm
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-15
(1 - f)ts
Serial section
Parallelizable sections
p processors
tp
(1 - f)ts /p
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-16
S(p) =
ts
p
=
fts + (1 f )ts /p
1 + (p 1)f
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-17
f = 0%
16
12
f = 5%
8
4
f = 10%
f = 20%
4
8
12 16 20
Number of processors, p
slides1-18
Time
ts
ts/p
Sub-space
search
t
xts/p
Solution found
x indeterminate
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-19
Solution found
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-20
x t s + t
----
p
S ( p ) = -----------------------------t
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-21
Worst case for sequential search when solution found in last subspace search. Then parallel version offers greatest benefit, i.e.
p 1 t + t
- s
----------p
S ( p ) = ---------------------------------------- as t tends to zero
t
Least advantage for parallel version when solution found in first subspace search of the sequential search, i.e.
t
S( p) =
----- = 1
t
Actual speed-up depends upon which subspace holds solution but
could be extremely large.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-22
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-23
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-24
Conventional Computer
Consists of a processor executing a program stored in a (main)
memory:
Main memory
Instructions (to processor)
Data (to or from processor)
Processor
slides1-25
One
address
space
Memory modules
Interconnection
network
Processors
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-26
Shared memory
Bus
Examples:
Dual Pentiums
Quad Pentiums
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-27
Processor
Processor
Processor
Processor
L1 cache
L1 cache
L1 cache
L1 cache
L2 Cache
L2 Cache
L2 Cache
L2 Cache
Bus interface
Bus interface
Bus interface
Bus interface
Processor/
memory
bus
I/O interface
Memory Controller
I/O bus
Shared memory
Memory
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-28
slides1-29
Message-Passing Multicomputer
Complete computers connected through an interconnection
network:
Interconnection
network
Messages
Processor
Local
memory
Computers
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-30
Interconnection Networks
With direct links between computers
Exhausive connections
Hypercube
Using Switches:
Crossbar
Trees
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-31
Computer/
processor
slides1-32
Three-dimensional hypercube
110
100
111
101
010
000
011
001
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-33
Four-dimensional hypercube
0110
0100
0111
0101
0010
0000
1100
0011
0001
1110
1111
1101
1010
1000
1011
1001
slides1-34
Crossbar switch
Memories
Processors
Switches
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-35
Tree
Root
Links
Switch
element
Processors
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-36
000
001
010
011
Outputs
100
101
100
101
110
111
110
111
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-37
Interconnection
network
Messages
Processor
Shared
memory
Computers
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-38
Flynns Classifications
Flynn (1966) created a classification for computers based upon
instruction streams and data streams:
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-39
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-40
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-41
Program
Instructions
Program
Instructions
Processor
Processor
Data
Data
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-42
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-43
Notable:
slides1-44
Key advantages:
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-45
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-46
Beowulf Clusters*
A group of interconnected commodity computers achieving high
performance with low cost.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-47
Cluster Interconnects
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.
slides1-48
Dedicated Cluster
User
Compute nodes
Master node
Up link
Switch
2nd Ethernet
interface
External network
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M. Allen, 2004 Pearson Education Inc. All rights reserved.