S455 of 55
0 XP
  1. Hook
  2. Problems

S4 · Final exam

Final exam: computer architecture

Twelve problems from the whole course: performance and power, instruction sets and pipelines, front ends, prediction and out-of-order execution, threads and caches, virtual memory, DRAM and NUMA, vectors and GPUs, rooflines, coherence and synchronization, security, data centers, accelerators, dependability, storage and evaluation. Give yourself three hours and work without the lessons open. "Another set" deals a different exam.

Check

A program of 3 billion instructions at CPI 1.2 on a 4 GHz core, 0.98 of it parallel.

(a)

Time on one core?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

(b)

Time on 32 cores (Amdahl)?

Check

A core at 2.8 GHz on 80 W (power ∝ f3); generations at √2 scale voltage by 0.95 with a fixed clock.

(a)

Clock at 200 W?

Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.

(b)

Usable fraction after 4 generations?

Check

A 32-bit ISA with 32 registers and a 7-bit I-type opcode; 0.6 of instructions compressible to 16 bits; 0.25 of instructions are loads fusable with their consumer (fused CPI 2.5, base CPI 1.2, clock 1.1× slower).

(a)

I-type immediate bits?

(b)

Compressed code size?

(c)

Fused version's relative time?

Check

90 FO4 of logic, 3 FO4 of overhead per stage, 0.06 stalls per instruction per stage; a loop of 30 iterations runs repeatedly.

(a)

Optimal depth?

(b)

1-bit predictor misprediction rate on the loop?

Check

A core with base CPI 0.5, 0.2 branches and a 25-cycle penalty; a predictor of 212 counters shared by 2000 branches.

(a)

Speedup from accuracy 0.9 to 0.99?

(b)

Aliasing probability?

Check

A 4-wide core averaging 30 cycles in flight, a 512-entry window, branches every 5 instructions at 0.99, 64 architectural registers, 0.8 of instructions writing one.

(a)

Sustainable IPC?

(b)

Useful instructions in a full window?

(c)

Physical registers?

Check

A block of 36 instructions with a 9-long chain; threads running 30 cycles between 500-cycle misses, coarse switching costing 6 cycles.

(a)

Dataflow IPC?

(b)

Fine-grained threads to saturate?

(c)

Coarse-grained ceiling?

Check

L1 1 / 0.04, L2 14 / 0.45 local, memory 180 cycles; a program with 16000 direct-mapped, 10000 fully associative and 3000 infinite-cache misses.

(a)

AMAT?

(b)

Conflict misses?

Check

A matrix multiply blocked by 32 on 1024 × 1024 matrices; a prefetching loop at 50 cycles per iteration with 300-cycle latency; translation with a 1 ns TLB, 100 ns memory, 0.97 TLB hit rate and 4-level walks.

(a)

Traffic reduction?

(b)

Prefetch distance?

(c)

Average translated access time?

Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.

Check

2 channels of 4800 MT/s DRAM; row hit rate 0.7 with tCL 16, tRCD 14, tRP 14 ns (misses are conflicts).

(a)

Peak bandwidth?

(b)

Average latency?

Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.

Check

A vector loop of 500 elements (MVL 64, 15 + 50 cycles per strip, 3 chimes); a GPU warp with 24 lanes on 30 instructions and the rest on 6.

(a)

Vector cycles per element?

(b)

Lane efficiency?

Check

A 1000 GFLOPS, 100 GB/s machine and a kernel of intensity 30.

(a)

Ridge point?

(b)

Attainable?

Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.

Practice

Keep practicing

19 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.