You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[inductor][NVGEMM] Support CuTeDSL compilation under runtime monitors - #194648
Support CuTeDSL compilation when runtime monitoring wraps cute.compile with an ordinary function. NVGEMM follows the wrapper's __wrapped__ chain, temporarily restores the underlying subscriptable compiler for serialized kernel compilation, and reinstalls the monitor afterward.
Keep the compatibility shim under the NVGEMM compilation lock because cute.compile is process-global. Add coverage for wrapper restoration, direct-epilogue cache signatures, and separation of the generated local reduction result from ordinary epilogue outputs.
Automated multi-agent review (architecture, correctness, simplification, generalization, and GPT-5.6 final approval). This is AI-generated — please verify findings manually.
Verified Issues
[high] Missing threading import crashes NVGEMM launches — Location: nv_universal_gemm_kernel.py:1096. Trigger: the first GEMM or SCALED_GEMM execution. Failure sequence: _update_reuse_args_tensors() returns true, then threading.Lock() executes after the import was removed, raising NameError before kernel.run(). Impact: non-grouped NVGEMM kernels cannot launch. Reviewers: Architecture, Correctness, Generalization.
[medium] Global unwrapping bypasses monitors for concurrent CuTeDSL compilation — Location: nv_universal_gemm_kernel.py:313-317. Trigger: an NVGEMM compile runs under a wrapped cute.compile while another thread starts an unlocked native CuTeDSL compile, such as torch.topk. Failure sequence: NVGEMM replaces the process-global binding with the raw compiler; the concurrent caller resolves that binding and invokes it directly. Impact: the installed monitor misses that compilation event. Reviewers: Architecture, Generalization.
mlazos
changed the title
[inductor][NVGEMM] Preserve CuTeDSL compile protocol under monitors
[inductor][NVGEMM] Support CuTeDSL compilation under runtime monitors
Sep 18, 2026
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
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.
Stack from ghstack (oldest at bottom):