Katkat

Design a profiling plan for kernels

AnthropicSoftware Engineer · Onsite

Last 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.