0Pricing
Mojo Academy · Lesson

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]():
    pass

All lessons in this course

  1. What Autotuning Solves
  2. Parameterizing Tile and Width
  3. Searching the Parameter Space
  4. Locking In the Best Config
← Back to Mojo Academy