Katkat

Evaluate Agents That Generate or Optimize Kernels and Compiler Code

AMDSoftware Engineer · Onsite

Last updated

Evaluate kernel and compiler agents with bounded transformation spaces, isolated execution, differential correctness checks, numerical tolerances, representative benchmarks, and reviewable evidence.

Evaluate the idea of using an agent to generate or optimize GPU kernels and compiler transformations. What capabilities would it need, how would you validate its work, and what limitations would shape its usefulness?

Constraints & Assumptions

The source describes an open technical discussion of kernel and compiler agents without a specific product design. Use a bounded optimization task and distinguish correctness, numerical acceptability, and performance. Do not assume generated code is safe or faster because it compiles.

Clarifying Questions

What transformation space is allowed? Which input shapes, data types, and hardware targets matter? What reference behavior and tolerances exist? How are generated programs isolated and resource-limited during evaluation?

Follow-up questions

  • How do you prevent benchmark overfitting? How can a compiler rewrite be wrong only on an edge case? What evidence is needed before accepting a faster floating-point kernel?