Repository navigation
Conversation
…12.x FusedMLAQUpProjRopeQuant.is_supported() only checks for compute capability major >= 10, so it returns True on SM 12.0. The cuDNN frontend gemm_proj_rope_mxfp8 kernel needs tcgen05, which SM 12.x does not have, and run() then raises "GemmProjRopeMxfp8 requires SM100+ compute capability with tcgen05 (not cc 12.x)". Callers that use is_supported() to choose the fused path crash instead of falling back. Return False for major == 12, matching the cuDNN frontend has_tcgen05() check. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com>
[Medium impact] The change affects hardware selection for one fused MLA Q up-projection workflow. The PR appears safe to merge, with a non-blocking request for a focused test. Findings
Summary
Reviews (1) · Last reviewed commit: "[PyTorch] Report the fused MLA Q up-proj..." · Reviewed by Greptile |
| if get_device_compute_capability()[0] < 10: | ||
| # The cuDNN FE kernel uses tcgen05, which SM 12.x (RTX/workstation Blackwell) does not have. | ||
| major = get_device_compute_capability()[0] | ||
| if major < 10 or major == 12: |
There was a problem hiding this comment.
SM12 check lacks test coverage
The existing tests use is_supported() to skip kernel tests, but never assert its answer. They run on SM100 hardware, where removing major == 12 would go unnoticed and could bring back the reported crash.
Add a focused test that mocks the capability and other support checks. Clear the is_supported cache between cases, and check that SM12.0/12.1 return False while SM10.x remains supported.
Description
FusedMLAQUpProjRopeQuant.is_supported()only checksget_device_compute_capability()[0] < 10, so it returnsTrueon SM 12.0 (RTX PRO 6000 / RTX 50xx Blackwell). The cuDNN frontend kernel it wraps (gemm_proj_rope_mxfp8_wrapper_sm100) uses tcgen05, which SM 12.x does not have, so the first call torun()raises:A caller that uses
is_supported()to choose between the fused and unfused MLA Q up-proj crashes on SM 12.x instead of falling back. The cuDNN frontend uses the same rule inhas_tcgen05()(major >= 10 and major != 12). The other cuDNN FE fused ops in TE are already gated onmajor == 10(for exampleGroupedMLP_CuTeGEMMGLU.is_supported()).Type of change
Changes
FusedMLAQUpProjRopeQuant.is_supported()returnsFalsefor compute capability major 12, as well as below 10.Validation
Hardware: RTX PRO 6000 Blackwell Max-Q (SM 12.0), driver 590.48.01, CUDA 13.0.88, PyTorch 2.14.1+cu130, nvidia-cudnn-frontend 1.33.0, TE source build at a6393d0.
python -m pytest tests/pytorch/attention/test_fused_mla.py:test_fused_mla_q_uproj[fp8-256],[bf16-256],test_fused_mla_q_uproj_autogradfused_supportedskip)The other 16 tests skip on SM 12.x for an unrelated, already-handled reason (MXFP8 is not available on 12.0+). Nothing changes on SM 10.x: the check is the same there.
Checklist: