Skip to content

cuda : speed up transposed dim-0 concat on RDNA3.5 - #1

Merged
zz002 merged 1 commit into
zz002:qwen-ple-lazy-loadfrom
amd-genmingz:qwen-ple-lazy-load
Nov 25, 2026
Merged

zz002 merged 1 commit into
zz002:qwen-ple-lazy-loadfrom
amd-genmingz:qwen-ple-lazy-load

Conversation

@amd-genmingz

Copy link
Copy Markdown
Collaborator

What changes:
Adds a 64x64 shared-memory transpose kernel.
Enables it for F32 dim-0 CONCAT with a contiguous prefix and a transposed second input.
Combines the transpose and short-prefix copy into one kernel launch.
Keeps the existing path on other architectures.
Adds correctness and performance coverage for the PLE shape [9,10240] + [2048,10240].
Reduces execution time from 3917.38 us to 2324.37 us, a 40.7% improvement.

TPS (with mtp,):
before: 42.74
after: 43.29

Assisted-by: GPT-5.6 Sol
Co-authored-by: Cursor <cursoragent@cursor.com>
@zz002
zz002 merged commit 00c43fe into zz002:qwen-ple-lazy-load Nov 25, 2026
2 checks passed
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.

2 participants