Skip to content

[inductor][NVGEMM] Skip unused local reduction storage - #194650

Closed
mlazos wants to merge 10 commits into
gh/mlazos/309/basefrom
gh/mlazos/309/head
Closed

mlazos wants to merge 10 commits into
gh/mlazos/309/basefrom
gh/mlazos/309/head

Conversation

@mlazos

@mlazos mlazos commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Allocate block-scaled GEMM shared memory for local reductions only when the
selected reduction geometry requires cross-warp combination. Fragment-local
reductions use the generated tensor epilogue result directly and therefore
reserve no shared-memory reduction buffer.

Keep the existing shared-memory layout for cross-warp reductions, including
reductions that feed the main output.

Test Plan

PYTHONPATH=/data/users/mlazos/pytorch/agent_space/runtime_overlay PYTORCH_BOUNDARY_ROOT=$PWD python test/inductor/test_nv_universal_gemm.py TestNVUniversalGemmEpilogueFusion.test_scaled_mm_grouped_n_composite_reduction_fusion TestNVUniversalGemmEpilogueFusion.test_scaled_mm_grouped_m_reduce_finalizes_after_cross_warp_combine -v
lintrunner -a

Description drafted with an AI assistant.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/194650

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 2 Unrelated Failures

As of commit b186d62 with merge base aebbfec (image):

NEW FAILURE - The following job has failed:

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@mlazos

mlazos commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

AI-Review

Automated multi-agent review (architecture, correctness, simplification, generalization, and GPT-5.6 final approval). This is AI-generated — please verify findings manually.


No verified issues found.

[ghstack-poisoned]
[ghstack-poisoned]
mlazos added 2 commits August 28, 2026 14:08
[ghstack-poisoned]
[ghstack-poisoned]
mlazos added 2 commits August 28, 2026 19:08
[ghstack-poisoned]
[ghstack-poisoned]
mlazos added 2 commits August 31, 2026 21:56
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant