Master the fundamental concepts of pipelining & out-of-order execution through this focused micro-challenge.
IPC (retired instructions per cycle) summarizes how well the CPU utilized its front end and execution units. IPC of 1.0 on a 4-wide machine means most slots went idle; values above 2 are common on wide out-of-order cores with SIMD.
bashLoading…
For example, a tight ADD loop on contiguous arrays might exceed 2.0 IPC while pointer-chasing serial loads sit near 0.3.
For this exercise, you will measure IPC on provided kernels and classify bottlenecks. This task asks you to connect perf counters to the pipeline concepts from earlier tasks instead of treating IPC as a magic score.
Keep the relevant datasheet, ISA manual, or architecture textbook chapter open while you implement. When your output disagrees with the reference trace on the same program, the bug is usually a mis-decoded opcode, a stale register read, or a flag bit left unchanged after arithmetic.
For this exercise, you will use those habits while implementing the requirement in the starter code. Microarchitectural product names change across CPU generations, but the control ideas (fetch, bypass, cache lines, vector lanes) stay stable enough to debug from first principles.
Measure IPC with perf and analyze performance.
Requirements:
Three hints are available for this task, revealed one at a time inside the code workspace so you can struggle productively before seeing them.
All starter code and reference implementations are available for your local setup.
View on Github