Repository navigation
Fix functionalization codegen after trimming XLA runtime - #56
Merged
Merged
Conversation
cyyever
marked this pull request as ready for review
November 17, 2026 15:32
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.
Agent details (AI-generated)
The Gitea CUDA wheel run 8774 fails compiling generated
RegisterFunctionalization_*.cpp: the trim runtime no longer declares or implementspropagate_xla_data_direct, but torchgen still emits the XLA-only call for mutable and out operators.Remove that stale call and the two temporary tensor reads used only by it. Preserve
replace_,commit_update,sync, and aliased return handling; no missing-symbol stub or compiler-error suppression is added.Regression coverage exercises an inplace operator and a two-output out operator, checking that mutation propagation remains intact and generated code has no dependency on the removed XLA runtime. Both cases fail against the original generator and pass with this fix under Python 3.15.
git diff --checkpasses.Validation limits: no full CUDA wheel build was run locally.
lintrunner -acould not run because lintrunner is not installed; no project or parent virtual environment exists. This draft targets the BakeLabtrimfork and awaits review.