Docsity

Parallel Computing Platforms-Parallel Computing-Lecture Slides, Slides of Parallel Computing and Programming

Partial preview of the text

Download Parallel Computing Platforms-Parallel Computing-Lecture Slides and more Slides Parallel Computing and Programming in PDF only on Docsity!

Dr. Hanif Durad

Lecture Outline (1/2)^ 

Implicit Parallelism: Trends inMicroprocessor Architectures

Limitations of Memory SystemPerformance

Dichotomy of Parallel Computing Platforms

Communication Model of ParallelPlatforms

Dr. Hanif Durad

Lecture Outline (2/2)^ 

Communication Costs in Parallel Machines

Messaging Cost Models and RoutingMechanisms

Mapping Techniques

Case Studies

Dr. Hanif Durad

Scope of Parallelism (2/2)

^

Different applications utilize different aspects ofparallelism - e.g., data itensive applications utilize highaggregate throughput, server applications utilize highaggregate network bandwidth, and scientific applicationstypically utilize high processing and memory systemperformance.

^

It is important to understand each of these performancebottlenecks.

Dr. Hanif Durad

2.1 Implicit Parallelism: Trends inMicroprocessor Architectures (1/2)

^

Microprocessor clock speeds have posted impressivegains over the past two decades (two to three orders ofmagnitude).

^

Higher levels of device integration have madeavailable a large number of transistors.

^

The question of how best to utilize these resources isan important one.

Dr. Hanif Durad

2.1.1 Pipelining and SuperscalarExecution (1/4)

Pipelining overlaps various stages of instructionexecution to achieve performance.

At a high level of abstraction, an instruction canbe executed while the next one is being decodedand the next one is being fetched.

This is akin to an assembly line for manufactureof cars.

Dr. Hanif Durad

Pipelining and SuperscalarExecution (2/4)

Pipelining, however, has several limitations.

The speed of a pipeline is eventually limited bythe slowest stage.

For this reason, conventional processors relyon very deep pipelines (20 stage pipelines instate-of-the-art Pentium processors).

Dr. Hanif Durad

Superscalar Execution: An Example

(a) Three different code fragments for a list of

four numbers

Dr. Hanif Durad

Superscalar Execution: An Example^ Execution Schedule for code fragment (i) above

Dr. Hanif Durad

Pipelining Execution

Instruction i

IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB

Instruction #Instruction i+1Instruction i+2Instruction i+3Instruction i+

Cycles

IF: Instruction fetch

ID : Instruction decode

EX : Execution

WB : Write back

Dr. Hanif Durad

Super-Scalar Execution

Instruction type

Cycles

Integer

IF
ID
EX
WB

Floating point

IF
ID
EX
WB

Integer Floating point

Integer Floating point

Integer Floating point

IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB
IF
ID
EX
WB

2-issue super-scalar machine

Dr. Hanif Durad

Superscalar Execution

Scheduling of instructions is determined by anumber of factors: (2/2)

^

The scheduler, a piece of hardware looks at a largenumber of instructions in an instruction queue andselects appropriate number of instructions to executeconcurrently based on these factors.

^

The complexity of this hardware is an importantconstraint on superscalar processors.

Dr. Hanif Durad

Legend for next slide taken fromCA course

^

Fetch Instruction (FI)

^

Decode Instruction (DI)

^

Calculate operands (i.e. EAs) (CO)

^

Fetch Operands (FO)

^

Execute Instructions (EI)

^

Write Operands (WO)

^

Overlap these operations

Dr. Hanif Durad

The Effect of a Conditional Branch on Instruction

Pipeline Operation

No inst completedin these 4 cycles

Know about conditional jump

Must be flushed

Dr. Hanif Durad

Superscalar Execution:Issue Mechanisms

In the simpler model, instructions can be issuedonly in the order in which they are encountered.That is, if the second instruction cannot beissued because it has a data dependency withthe first, only one instruction is issued in thecycle. This is called

in-order

issue.