Benchmark kernel launch overhead and partitioning - #774
Merged
Merged
Conversation
The benchmark suite only measured saxpy throughput, so changes to the host side of a launch went unnoticed: a warm CPU launch allocated about 50 times and the per-PR benchmark comment could not show it. Add a `launch` group timing a single-workgroup launch for the static and dynamic workgroup-size and ndrange combinations in one and three dimensions, with the kernel constructed in the setup and the backend synchronized in the teardown so that only the launch is measured, and a `partition` group timing the host-side partitioning of the iteration space on its own. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHciC8x39gm97sABrSvBkt
The launch benchmarks measure a launch that the CPU backend executes synchronously, so their time is dominated by the OpenCL runtime and has a spread of about 30%, while the host-side work of a launch shows up as allocations: a regression there changes the count by tens of allocations per launch and is invisible in the time table. `benchpkgtable` can print the allocation and memory table next to the time table. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHciC8x39gm97sABrSvBkt
giordano
force-pushed
the
mg/launch-benchmarks
branch
from
September 11, 2026 22:42
b2927d4 to
00c47a3
Compare
Contributor
Benchmark ResultsShow table
Benchmark PlotsA plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. |
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.
As requested in #764 (comment)