Design a profiling plan for kernels
AnthropicSoftware Engineer · OnsiteLast updated
This question evaluates competency in performance profiling, experimental design, microarchitectural analysis, statistical methodology, and kernel-level performance engineering.
Given only a kernel simulator that reports cycle counts and counters such as IPC, stall reasons, occupancy, and memory bandwidth, outline a rigorous profiling and experimentation plan. Define the baseline, select experiments with controlled variables, specify data collection, variance reduction, stop criteria, and methods to attribute speedup to specific changes. Explain how you ensure functional correctness after each iteration.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.