[examples][xegpu] Add gridsearch and genetic algorithm autotuners#79
[examples][xegpu] Add gridsearch and genetic algorithm autotuners#79
Conversation
71b7980 to
513f36b
Compare
|
Thanks to #63 we can now trace the schedule module to construct the search space, enumerate it, and also automatically check the validity of a given set of parameters (what |
There was a problem hiding this comment.
Pull request overview
Adds two autotuning entrypoints for the XeGPU matmul example (exhaustive grid search + genetic algorithm), along with shared utilities and documentation updates to support running/recording tuning experiments.
Changes:
- Add
tune_matmul_gridsearch.pyfor exhaustive parameter search and CSV logging. - Add
tune_matmul_ga.py+genetic_algorithm.pyfor GA-based adaptive sampling. - Refactor
matmul.pyCLI parsing to share args with tuners and add JSON parameter loading; update README and lit excludes.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/xegpu/tune_matmul_gridsearch.py | Implements exhaustive search, constraints filtering, timed execution, CSV logging, and JSON dumping. |
| examples/xegpu/tune_matmul_ga.py | Implements GA-driven tuning using the shared search-space + logging utilities. |
| examples/xegpu/matmul.py | Extracts shared CLI parser and adds --json parameter loading path. |
| examples/xegpu/lit.local.cfg | Excludes non-test helper/tuner scripts from lit discovery. |
| examples/xegpu/genetic_algorithm.py | New GA + population/search-space utility implementation. |
| examples/xegpu/csv_logger.py | New small CSV logger utility used by both tuners. |
| examples/xegpu/README.md | Documents new tuning workflows and updates matmul CLI usage examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Default tile sizes are updated by json and cli arguments in that order.
Adds
tune_matmul_gridsearch.pyandtune_matmul_ga.pymethods. See README.md for instructions.