Repository navigation
[CUDA] Address cuDNN paged SDPA review feedback - #32624
Merged
Tianlei Wu (tianleiwu) merged 3 commits intoOct 2, 2026
Merged
Tianlei Wu (tianleiwu) merged 3 commits into
Tianlei Wu (tianleiwu) merged 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
π‘ Changes recommended
The cache-key and late XQA fallback fixes lack regression tests that would fail if those behaviors regress.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Refines CUDA PagedAttentionβs cuDNN paged-SDPA dispatch and cache behavior.
Changes:
- Reuses one canonical attention scale for probing and execution.
- Corrects XQA-to-cuDNN fallback state and diagnostics.
- Updates cuDNN tests to use head size 96.
File summaries
| File | Description |
|---|---|
attention_data.h |
Carries the resolved cuDNN scale. |
cudnn_flash_attention.cc |
Simplifies eligibility and documents cache growth. |
cudnn_flash_attention.h |
Updates the paged-support API. |
paged_attention.cc |
Canonicalizes scale and corrects backend selection. |
paged_attention_impl.cu |
Uses the stored canonical scale. |
paged_attention_op_test.cc |
Changes cuDNN test shape to head size 96. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Balanced (auto)
Note
Copilot is running an experiment and ran this review at Balanced.
π‘ Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Tianlei Wu (tianleiwu)
requested review from
Akshay Sonawane (apsonawane),
Baiju Meswani (baijumeswani) and
kunal-vaishnavi
September 21, 2026 23:10
Tianlei Wu (tianleiwu)
force-pushed
the
tlwu/20260915/cudnn-paged-review-fixes-main
branch
from
October 2, 2026 04:17
b61cdf8 to
512fb9a
Compare
Tianlei Wu (tianleiwu)
enabled auto-merge (squash)
October 2, 2026 04:17
kunal-vaishnavi
approved these changes
Oct 2, 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
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.
Description
Follow-up to #32493 that addresses the remaining review feedback after the original PR was merged.
max_sequence_length_kvshape-gate argument, document the unbounded thread-local graph-cache growth, and include cuDNN in backend diagnostics.head_size=96in the cuDNN paged tests.Testing
clang-format --dry-run --Werroron all changed filesgit diff --checkpaged_attention.cc,paged_attention_impl.cu, andcudnn_flash_attention.ccin the CUDA 13.0 / cuDNN 9.23 H200 buildpaged_attention_op_test.ccwith the CUDA provider flagsThe available CUDA build was configured with
onnxruntime_BUILD_UNIT_TESTS=OFF, so the focusedPagedAttention.Cuda_CudnnPaged*runtime tests could not be executed locally.