Repository navigation
Adding affinity solver max iterations flag and upping default. - #20923
Merged
Merged
Conversation
ScottTodd
approved these changes
May 29, 2025
benvanik
marked this pull request as ready for review
May 29, 2025 00:25
hanhanW
approved these changes
May 29, 2025
`--iree-stream-affinity-solver-max-iterations=N` will allow an easy way to isolate analysis failures to the solver iteration count. Now that CloneToConsumersPass isn't running the solver itself in a loop (much) it's less scary to up the default, though it's still risky in the failure cases as it could lead to _very_ long times to failure. The proper solution is to reduce the iteration count by somehow dealing with very long tied op chains that pass through multiple affinities.
benvanik
force-pushed
the
users/benvanik/affinity-solver-flag
branch
from
May 29, 2025 00:43
480e558 to
7df32d9
Compare
benvanik
enabled auto-merge (squash)
May 29, 2025 00:44
benvanik
disabled auto-merge
May 29, 2025 01:15
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
`--iree-stream-affinity-solver-max-iterations=N` will allow an easy way to isolate analysis failures to the solver iteration count. Now that CloneToConsumersPass isn't running the solver itself in a loop (much) it's less scary to up the default, though it's still risky in the failure cases as it could lead to _very_ long times to failure. The proper solution is to reduce the iteration count by somehow dealing with very long tied op chains that pass through multiple affinities.
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.
--iree-stream-affinity-solver-max-iterations=Nwill allow an easy way to isolate analysis failures to the solver iteration count. Now that CloneToConsumersPass isn't running the solver itself in a loop (much) it's less scary to up the default, though it's still risky in the failure cases as it could lead to very long times to failure.The proper solution is to reduce the iteration count by somehow dealing with very long tied op chains that pass through multiple affinities.