Upload
sumita-das
View
71
Download
1
Embed Size (px)
Citation preview
LOGO
HARDWARE AND SOFTWARE PARALLELISM
Advanced Computer Architecture
BY SUMITA DAS
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
Hardware Parallelism Defined by the machine architecture and hardware
multiplicity.
Function of cost and performance tradeoffs.
Created by Sumita Das
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
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
Software Parallelism:
The parallelism varies from 4 to 2 in three cycles
Created by Sumita Das
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.
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.
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
Solving the Mismatch problem By developing the compilation support
By Redesigning the hardware
Created by Sumita Das
References Kai Hwang, “Advanced Computer
Architecture, Chapter 2: Conditions of Parallelism”, 2000
Created by Sumita Das
THANK YOU!
Created by Sumita Das