[Tune] Constraint extraction, model finding, and schedule rewriting#40
Draft
[Tune] Constraint extraction, model finding, and schedule rewriting#40
Conversation
tkarna
reviewed
Dec 18, 2025
Comment on lines
+385
to
+390
| if args.dump_schedule: | ||
| schedule_module = wload.schedule_module( | ||
| stop_at_stage=args.dump_payload, parameters=params | ||
| ) | ||
| print(schedule_module) | ||
| elif args.dump_payload: |
Contributor
There was a problem hiding this comment.
It would be good if we could still dump both the payload and schedule simultaneously if so desired.
tkarna
reviewed
Dec 19, 2025
|
|
||
| from mlir import ir | ||
|
|
||
| NonDet = object() # Sentinel value for non-determinized parameters. |
Contributor
There was a problem hiding this comment.
Maybe a more descriptive name e.g. "Unselected"
tkarna
approved these changes
Dec 19, 2025
Contributor
tkarna
left a comment
There was a problem hiding this comment.
Apart from a couple of minor comments this looks good time!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For a non-trivial example, run
python examples/xegpu_matmul/matmul.py --dump-schedule --non-detforthen feed that to
... | python -m lighthouse.tune - --print-smtlib -n 100:Co-authored-by: Tuomas Kärnä tuomas.karna@intel.com