) A program is run on a 2.1 GHz processor. The program's code consists of 10,000 instructions, with the following instruction...
bannbu) A program is run on a 2.1 GHz processor. The program's code consists of 10,000
instructions, with the following instruction mix and clock cycle count:
Instruction Type Instruction Count
(# of such instructions)
Clock Cycle Count
(# of clock cycles / instr.)
Integer arithmetic 5000 1
Data transfer 3000 2
Floating point 1500 2
Control transfer 500 2
Determine this program’s (i) effective CPI and (ii) the percentage of time doing FP ops.
(b) A new computer with enhanced architecture run 16 times faster than the original
machine, but it is usable only 1/8 of the time. What is the speedup?
(c) A program takes 15 seconds to execute on a single 1.8GHz processor. 30% of the
program is sequential. Assuming zero latency and perfect parallelism in the remaining
code, how long should the code take on a 20 core processor machine?
(d) A computer uses instruction pipelining with P=4 stages named FD, DO, EX, WO.
Each stage takes T seconds to perform its task. Suppose you have N=9 instructions in
your program which has a branch from instruction 4 to 8. Draw a figure to show what
happens over time as each instruction is processed. Indicate the branch penalty.
Question 2.
Consider the following code sequence:
i: R7 R12+R5
i+1: R8 R7-R12
i+2: R5 R8+R7
(a) List the RAW dependencies, if any:
(b) List the WAR dependencies, if any; rewrite code showing how to avoid them:
(c) List the WAW dependencies, if any; rewrite code showing how to avoid them
- 10 years ago
- 999999.99
- assignement 34
- Java Help
- determine the probability of selecting each card the ace of spades a 5 a 5 or a 9
- Biology help
- 30 question final
- Annabelle makes her way to the middle of the stage, she starts to set her self into first position, as...
- Moral Development Question - Ethics in Human Service
- For Genius_2006
- mat 222 week 1 discussion and week 1 assignment
- Macroeconomics Assignment - Week 2