Repository navigation
perf(cake_ulysses): interleaved-stripe NVLink all-to-all kernels for sm_100a/sm_103a #6864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
80240c8
perf(cake_ulysses): move the Blackwell NVLink all-to-all into the cak…
averyhNV 83b192e
perf(cake_ulysses): export the v2 Blackwell all-to-all kernels into c…
averyhNV 107ccc7
perf(cake_ulysses): export the v4 interleaved-stripe all-to-all kernels
averyhNV 536f542
perf(cake_ulysses): format the package host modules, tests and benchm…
averyhNV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 16232
Keep rank alignment outside the timed interval.
bench_gpu_time_with_cuptiexcludes the L2 flush from the CUPTI interval because it synchronizes afterbuffer.zero_()and before recordingstart_cpu. However,_alignedstill performstorch.cuda.synchronize()anddist.barrier(group=barrier_group)afterstart_cpuis recorded. The CUPTI interval is based on launches between the CPU timestamps, so the alignment wait can affect which rank's kernels fall in the interval and can make the measured kernel set depend on cross-rank launch skew.Move the alignment before the timed callback, or update the timing helper so that the alignment operation is not part of the interval. Keep
aggregate_gpu_time_across_ranks(..., aggregate_op=max)after per-iteration GPU spans are computed.🤖 Prompt for AI Agents