Repository navigation
Conversation
The NVGEMM availability probe only guarded module discovery, while FP4 registration imported the optional operators package after the guard. A discoverable but broken installation therefore raised during ordinary Inductor lowering instead of disabling the optional backend. Run FP4 registration inside the existing ImportError and ValueError boundary so the probe consistently returns False. Guarding the probe itself keeps direct callers safe; merely reordering autotune gates would leave the boolean availability contract broken. Test Plan: ``` python test/inductor/test_utils.py TestFP4Support.test_ensure_nv_universal_gemm_import_error ``` Passed (1 test). ``` python test/inductor/test_utils.py TestFP4Support ``` Passed (4 tests, 1 skipped). ``` lintrunner -a ``` Passed with no lint issues in the initialized checkout. The refreshed worktree rerun is blocked by unrelated editable-build and lintrunner initialization skew. Fixes #197463 Authored with assistance from an AI coding agent. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198292
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 4 Unrelated FailuresAs of commit 08ffdbe with merge base 6a895d1 ( NEW FAILURE - The following job has failed:
UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:
CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
AI-Review
No verified issues found. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 3 checks: inductor / unit-test / inductor-cpu-test / test (inductor_aoti_fallback, 2, 2, mt-l-x86iamx-8-64, unstable), inductor / unit-test / inductor-cpu-test / test (inductor_aoti_fallback, 1, 2, mt-l-x86iamx-8-64, unstable), trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Human commentary: Fixes a bug where 2-CTA kernels weren't considered. AI-generated draft: > ## Issue > > Fixes #196313 > > ## Summary > > `nvMatmulHeuristics` reports tile M per CTA, while CUTLASS reports a pair-wide M tile for true 2-CTA kernels. Comparing those values directly prevented recommended dense 2-CTA kernels from entering NVGEMM autotuning. > > Normalize heuristic-matching keys using the implementation's `use_2cta_instrs` metadata, with a guarded design-metadata fallback for older kernels. The design flag alone is insufficient because block-scaled operators can set it for 1-CTA kernels. Supplemental configs continue to use raw design coordinates, preserving distinct 128-row and 256-row candidates. > > For example, a dense pair-wide `(256, 128, 2, 1)` design now matches the heuristic's per-CTA `(128, 128, 2, 1)` recommendation, while a block-scaled 1-CTA `(128, 128, 2, 1)` design remains unchanged. > > ## Checklist > > - [ ] Passes lint (`spin fixlint` is unavailable in this environment) > - [x] Added regression tests > - [x] Documentation is not applicable > - [ ] B300 benchmarks were not rerun locally; reporter results are linked in #196313 > > ## Tests > > The focused source-loaded filtering suite passed 6 tests covering dense 2-CTA normalization, block-scaled 1-CTA preservation, metadata fallback and absence, ordering, and supplemental raw-key collisions. > > `lintrunner -a --skip PYREFLY torch/_inductor/heuristics/template/nv_universal_gemm.py test/inductor/test_nv_universal_gemm.py` passed with no lint issues. Full `lintrunner -a` exited successfully but emitted unrelated repo-wide Pyrefly diagnostics because the refreshed worktree has no lintrunner initialization and the editable build targets an older checkout. > > B300 performance was not available locally; the issue contains the reporter's B300 timings for the same key correction. > > ## BC-breaking? > > No. This corrects internal matching of equivalent kernel metadata and preserves existing supplemental-key behavior. > > Authored with assistance from an AI coding agent. Pull Request resolved: #198293 Approved by: https://github.com/drisspg ghstack dependencies: #198292
…ss (#8920) Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0) (oldest at bottom): * #8926 * #8924 * #8923 * #8922 * #8921 * __->__ #8920 * #8919 * #8918 Adds an exclusion to Single-cause bugfix: not when the fix turns an error into a quieter outcome, a warning or a dropped or substituted value, that the function's documentation did not already promise. pytorch/pytorch#196687 made an unpicklable `__doc__` drop to None with a warning instead of failing the save; albanD ruled that choosing how to fail needs a reviewer. Intended verdicts: pytorch/pytorch#196687 NO_LAND, pytorch/pytorch#198292 LAND (its docstring already promised the False result). Test plan: greenlight suite 2005 passed, parsers 152, test_remap 14.
Human commentary: Fixes operator import
AI-generated draft:
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo