D13 Final capstone · Practice
A computer of your own: performance
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 7 kinds solid
Check
A program executes 2339 instructions at a CPI of 1.2 on a 1000 MHz clock. How long does it take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A trace has 1000 instructions, 19 load-use stalls and 343 taken branches and jumps, which cost 2 cycles each. What's its CPI?
Check
A program takes 3000 cycles unoptimized and 1000 optimized. What's the speedup?
Check
A five-stage pipeline stalls 1 cycle(s) on each load-use hazard, which follow 20% of instructions, and loses 2 cycles on each mispredicted branch: branches are 20% of instructions and 30% of them mispredict.
(a)
What is its CPI?
(b)
Against a multicycle version averaging 4.2 cycles per instruction at the same clock, what's the speedup?
Check
An optimized build runs a benchmark in 2 ms against 10 ms for the unoptimized one. What is the speedup?
Check
Time: 500 instructions, CPI 0.5, 3000 MHz?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
CPI: 100 instructions, 5 stalls, 3000 taken branches and jumps?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in D13