Repository navigation
attention: shared-scan kernels do not wait on PDL entry - #21
Merged
Merged
Conversation
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]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #20, which broke
cuda_backend::gpu_impl::pdl::tests::pdl_target_kernels_wait_exactly_when_listedinspark-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_scanandattn_shared_scan_reducecalledatlas_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_checkpasses 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
pdltests pass. The image gate's full workspace suite (cargo test --locked --workspace --releasewith the Dockerfile's skips) passes except threespark-servertests 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_flagsand the twotui::bench_variantstests: "not inside a git checkout").🤖 Generated with Claude Code