12
LOGO HARDWARE AND SOFTWARE PARALLELISM Advanced Computer Architecture BY SUMITA DAS

Hardware and software parallelism

Embed Size (px)

Citation preview

Page 1: Hardware and software parallelism

LOGO

HARDWARE AND SOFTWARE PARALLELISM

Advanced Computer Architecture

BY  SUMITA DAS

Page 2: Hardware and software parallelism

Hardware Parallelism One way to characterize the parallelism in a processor is

by the number of instruction issues per machine cycle.

k-issue processor. E.g. : Intel i960 is a 3-issue processor with

One arithmetic operation, One memory access operation, and One branch instruction issues per cycle

Created by Sumita Das

Page 3: Hardware and software parallelism

Hardware Parallelism Defined by the machine architecture and hardware

multiplicity.

Function of cost and performance tradeoffs.

Created by Sumita Das

Page 4: Hardware and software parallelism

Software Parallelism: Two Types:

– Control Parallelism– Data Parallelism

The degree of parallelism is revealed in the program profile or in the program flow graph.

Function of algorithm, programming style, and program design.

The program flow graph displays the patterns of simultaneously executable operations. Created by Sumita Das

Page 5: Hardware and software parallelism

Mismatch between S/W & H/W Parallelism:

Example:A=L1*L2+L3*L4B=L1*L2-L3*L4

Software Parallelism:There are 8 instructions FOUR Load instructions(L1,L2,L3&L4). TWO Multiply instructions(X1&X2). ONE Add instruction(+) ONE Subtract instruction(-)

Created by Sumita Das

Page 6: Hardware and software parallelism

Software Parallelism:

The parallelism varies from 4 to 2 in three cycles

Created by Sumita Das

Page 7: Hardware and software parallelism

Created by Sumita Das

Hardware Parallelism Using TWO-issue processor The processor can execute one

memory access and one arithmetic operation simultaneously.

The program must execute in 7 cycles.

The h/w parallelism average is 8/7=1.14.

Mismatch between the s/w and h/w parallelism.

Page 8: Hardware and software parallelism

Created by Sumita Das

Example: A h/w platform of

a Dual-Processor system, single issue processors are used to execute the same program.

Six processor cycles are needed to execute the 12 instructions by two processors.

Page 9: Hardware and software parallelism

Example Continued… S1 & S2 are two inserted store operations. L5 & L6 are two inserted load operations. The added instructions are needed for interprocessor

communication through the shared memory.

Created by Sumita Das

Page 10: Hardware and software parallelism

Solving the Mismatch problem By developing the compilation support

By Redesigning the hardware

Created by Sumita Das

Page 11: Hardware and software parallelism

References Kai Hwang, “Advanced Computer

Architecture, Chapter 2: Conditions of Parallelism”, 2000

Created by Sumita Das

Page 12: Hardware and software parallelism

THANK YOU!

Created by Sumita Das