Skip to content

flashnext cuda: opt-in PDL for the fixed-weight decode kernels - #4502

Open
ashhart wants to merge 6 commits into
mainfrom
lead/flashnext-pdl-fixed
Open

ashhart wants to merge 6 commits into
mainfrom
lead/flashnext-pdl-fixed

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

With TF_FLASHNEXT_PDL=1 on sm_90 and later, Flash Next's CUDA decode lanes set the programmatic-dependent-launch attribute for kernels whose weights are fixed and known before they wait on the previous kernel: the qmmf GEMV lanes (which already emit a weight-first prologue), HC, attention and the router. Every read of a predecessor's output stays after the wait. The routed NVFP4 expert kernels choose their weight addresses from the preceding plan, so they get no early weight prologue (an earlier task stopped on exactly that premise). Default off; registered strictly and counted in the Flash Next environment test.

Checks

  • Host fixtures for the launch policy and the strict flag; fmt, ast-check, lean, 600-line cap.

Still to run

check-pdl-loads (SASS load order) for every touched kernel and an empty SASS diff for untouched ones, then one GB10 Flash Next one-stream A-B-B-A with tokens compared.

@ashhart
ashhart force-pushed the lead/flashnext-pdl-fixed branch 2 times, most recently from 2c33c88 to e167be4 Compare November 23, 2026 12:38
@ashhart
ashhart force-pushed the lead/flashnext-pdl-fixed branch from e167be4 to 3c77de7 Compare November 23, 2026 19:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant