mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #270] [CLOSED] qsa_prompt_attn: run the f16 tensor-core path on Turing (sm_75) #2538
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/270
Author: @kenh0u
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:sm75-tensor-cores📝 Commits (1)
3d3939dqsa_prompt_attn: the f16 tensor-core path runs on Turing (sm_75) as two m16n8k8 steps📊 Changes
1 file changed (+25 additions, -7 deletions)
View changed files
📝
src/kernels/cuda/qsa_prompt_attn.cu(+25 -7)📄 Description
What this does
mma.m16n8k16(f16) needs sm_80, so main compiles the tensor-core prompt attention to a trap on sm_75 and those cards run the fp32-FMA kernel — the gap #87 left in ("the sm_80 guard on the tensor-core prompt attention"). Turing (sm_75) hasmma.m16n8k8with the same A/B/C register mapping, so each k=16 step becomes two k=8 steps on the fragments exactly as they are already laid out (a[0]/a[1] with b[0], a[2]/a[3] with b[1]). The sum rounds twice, so the two paths do not agree bit for bit. Turing therefore takes the v1 kernel, which has no cp.async dependency.Measured (Quadro RTX 8000, CUDA 12.9, arch 75)
qsa_prompt_attn_parity(-DCMAKE_CUDA_ARCHITECTURES=75): PASS, FAILURES: 0; vs FP64 new 6.99e-06, old 2.37e-06 (output scale 3.62); int8 kernel 62.3 → 19.6 ms per chunk (3.19x), fp16 65.0 → 25.1 ms (2.59x)AI tooling
Developed with Claude Code (GLM-5.3-Flash): implementation, sm_75 parity runs and the measurements above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.