-
Notifications
You must be signed in to change notification settings - Fork 354
[CK_TILE] fix(fmha): support >2GB KV cache in batch prefill via template dispatch #6653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Jeff-Huang
merged 17 commits into
develop
from
users/jeff-huang/ck/batch-prefill-fix-4bg-overflow
Apr 23, 2026
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e913534
fix(fmha): global_load_lds flat addressing for >4GB KV cache (page_si…
Jeff-Huang f96c1d1
fix(fmha): V flat 64-bit load for >4GB KV cache (page_size < kN0)
Jeff-Huang 88508a7
fix(fmha): double-buffer v_physical_pages for flat load pipeline sync
Jeff-Huang 78203c6
feat(fmha): template dispatch for >4GB KV cache in batch prefill
Jeff-Huang b87084c
refactor(fmha): unify tile_scatter_gather to two-mode design (SRD/Glo…
Jeff-Huang b0a6bd6
feat(fmha): add CDNA3+ arch guards for global_load_lds in batch prefill
Jeff-Huang 83d6de7
fix(fmha): limit SRD num_records to page_stride after rebase (gfx950 …
Jeff-Huang bcead4b
cleanup: remove unused wave_reduce_min from utility.hpp
Jeff-Huang 62b15aa
fix(buffer): use dependent assertion for unsupported num_dwords in as…
Jeff-Huang e1f80b1
refactor(fmha): tighten batch prefill SRD types and document 32-bit v…
Jeff-Huang b475690
docs(fmha): correct >2GB threshold wording across batch prefill
Jeff-Huang 0fcb74e
refactor(fmha): move use_64bit_load decision into auto-gen API dispat…
Jeff-Huang 66efbd5
refactor(fmha): unify kUse64BitLoad/kUseFlatLoad → kUseGlobalLoad
Jeff-Huang 9f098e2
fix(fmha): use __builtin_assume + restore batch prefill review polish
Jeff-Huang 72a5da7
refactor(fmha): batch prefill review polish — assert helper + setter …
Jeff-Huang bda6142
refactor(fmha): apply PR #6653 review feedback (Tasks #70-#74)
Jeff-Huang a2692f8
refactor(fmha): make tile_scatter_gather page fields conditional on k…
Jeff-Huang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.