Parameterizing Tile and Width
Expose tunable knobs as parameters.
Knobs Must Be Parameters
To let autotuning vary a value, it has to be a compile-time parameter, not a plain runtime variable. Parameters can be specialized per candidate.
Tile Size as a Knob
A tile size controls how big a block of work you process at once. Make it a parameter and the tuner can try 16, 32, 64, and more.
fn process[tile: Int]():
passAll lessons in this course
- What Autotuning Solves
- Parameterizing Tile and Width
- Searching the Parameter Space
- Locking In the Best Config