Adding 'empty' kernel launch preset - #297
Merged
Merged
Conversation
nileshnegi
approved these changes
May 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new empty preset to TransferBench to measure HIP/CUDA empty-kernel launch latency across configurable batch sizes, grid sizes, and block sizes, helping isolate non-transfer timing overheads.
Changes:
- Registers a new
emptypreset in the preset registry. - Introduces
EmptyKernelPresetimplementation to sweep launch parameters and report event/CPU timings. - Documents the new preset in user docs and the changelog.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/client/Presets/Presets.hpp | Registers the new empty preset and includes its header. |
| src/client/Presets/EmptyKernel.hpp | Implements the empty-kernel launch latency sweep preset and reporting/broadcast logic. |
| docs/how to/use-transferbench.rst | Adds empty to the documented preset list. |
| CHANGELOG.md | Notes the addition of the empty preset. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Motivation
Some of the timing functions in TransferBench include time outside of just Transfer. The
emptypreset allows sweep across multiple ranks / gpus to try measuring the time it takes to launch a purely empty HIP kernel to try to understand this extra amount of time. Kernel launches can be batched together prior to synchronization to understand how launch latency may be amortized.Example output