C8 Computer organization · Practice
Branch prediction and parallel processors
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 10 kinds solid
Check
A loop of 8 iterations is run 100 times; count only the runs after the first.
(a)
How many times does a 1-bit predictor mispredict its closing branch in those runs?
(b)
What accuracy does a 2-bit predictor achieve on it?
Check
Branches are 0.2 of the instructions, predicted with accuracy 0.85, and a misprediction costs 20 cycles. The base CPI is 1.
(a)
What is the CPI?
(b)
What is the IPC?
Check
A 2-wide superscalar processor loses 0.1 cycles per instruction to stalls and mispredictions.
(a)
What is its CPI?
(b)
What IPC does it achieve?
Check
A fraction 0.9 of a program's work runs in parallel on 4 cores.
(a)
What is the speedup over one core?
(b)
What fraction of the cores' capacity is used, as a percentage?
Check
A chip replaces one core with 2 cores, each at 0.6 of the clock rate and 0.9 of the voltage.
(a)
What is the dynamic power relative to the single core?
(b)
What is the throughput on perfectly parallel work, relative to the single core?
Check
90% of a program runs in parallel on 4 cores.
(a)
What's the speedup?
(b)
How efficiently are the cores used?
Check
A loop of 5 iterations is run many times.
(a)
What accuracy does a 1-bit predictor get on its closing branch?
(b)
And a 2-bit predictor?
Check
What accuracy does a 1-bit predictor get on the closing branch of a 16-iteration loop that is run repeatedly?
Check
B = 0.1, accuracy 0.9, penalty 15 cycles, base CPI 1: what is the CPI?
Check
A fraction 0.75 parallel on 2 cores: what is the speedup?
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 C8