Fix FastDivmod divisor SSA transport for kernel regions (#3243)#3246
Open
zhils wants to merge 1 commit into
Open
Fix FastDivmod divisor SSA transport for kernel regions (#3243)#3246zhils wants to merge 1 commit into
zhils wants to merge 1 commit into
Conversation
Expose encoded divisor plus scalar divisor IR through FastDivmodDivisor::__extract_mlir_values__ and rebuild .divisor from region-local SSA in __new_from_mlir_values__. Update persistent tile schedulers to slice FDD tail by extract_mlir_values length. Add CuTeDSL compile regression derived from upstream repro. Co-authored-by: Cursor <cursoragent@cursor.com>
questa-wang
approved these changes
May 20, 2026
Contributor
questa-wang
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the fix.
Contributor
|
Hi @zhils, thanks a lot for putting up this fix! We've been tracking the same root cause internally and have landed a broader patch that touches additional consumers beyond what's visible in the public tree, plus a small fix avoid re-emitting IR on the device side during reconstruction. |
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.
Fixes #3243
Expose encoded divisor plus scalar divisor IR through
FastDivmodDivisor::__extract_mlir_values__and rebuild.divisorfrom region-local SSA in__new_from_mlir_values__. Update persistent tile schedulers to slice the FastDivmod tail usingextract_mlir_valueslength. Add a CuTeDSL compile regression aligned with the issue repro.Test plan
pytest test/examples/CuTeDSL/test_fast_divmod_divisor_param_transport.py