Skip to content

attention: shared-scan kernels do not wait on PDL entry - #21

Merged
data-angel merged 1 commit into
q27/concfrom
q27/shared-scan-pdl
Nov 10, 2026
Merged

data-angel merged 1 commit into
q27/concfrom
q27/shared-scan-pdl

Conversation

@data-angel

Copy link
Copy Markdown

Follow-up to #20, which broke cuda_backend::gpu_impl::pdl::tests::pdl_target_kernels_wait_exactly_when_listed in spark-runtime. #20 was merged on lint, the new unit tests and the GPU check; the workspace test suite was not run, and the SparkQwen image build's test gate caught this.

attn_shared_scan and attn_shared_scan_reduce called atlas_pdl_enter() but are on no PDL list. The test requires that a kernel of the target's own tree that waits is listed. They are launched without the PDL attribute, where the wait is a no-op, so this drops the call and the include. A PDL-launched successor still waits for the reduce to finish.

No change in output: attn_shared_scan_check passes with the same counts (0.18% of elements one BF16 step from the scalar kernel), one layer at 210K tokens 16.9 ms -> 5.1 ms as before.

Checks: the six pdl tests pass. The image gate's full workspace suite (cargo test --locked --workspace --release with the Dockerfile's skips) passes except three spark-server tests that need a git checkout and ran here from a source copy without .git (a_baseline_declared_serve_pin_reaches_the_rendered_serve_args_without_cli_flags and the two tui::bench_variants tests: "not inside a git checkout").

🤖 Generated with Claude Code

attn_shared_scan and attn_shared_scan_reduce called atlas_pdl_enter() but are
on no PDL list, which pdl_target_kernels_wait_exactly_when_listed rejects (a
kernel of the target's own tree that waits must be listed). They are launched
without the PDL attribute, where the wait is a no-op, so drop it. No change
in output: the GPU check passes with the same counts.

Co-Authored-By: Claude <[email protected]>
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