Add ctas_per_cga for PAIR_CTA mode in TLX kernels#431
Closed
rafaykhurram wants to merge 1 commit intometa-recsys:mainfrom
Closed
Add ctas_per_cga for PAIR_CTA mode in TLX kernels#431rafaykhurram wants to merge 1 commit intometa-recsys:mainfrom
rafaykhurram wants to merge 1 commit intometa-recsys:mainfrom
Conversation
Differential Revision: D89439254
|
@rafaykhurram has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89439254. |
facebook-github-bot
pushed a commit
to meta-pytorch/tritonbench
that referenced
this pull request
Dec 18, 2025
Summary: X-link: meta-recsys/generative-recommenders#431 Add `ctas_per_cga` parameter to `triton.Config` when `PAIR_CTA` is enabled, following the pattern from D89389230 which introduces CUDA-native cluster launch semantics. This change affects: - `tritonbench/operators/gemm/tlx_matmul.py`: Added `ctas_per_cga=(2, 1, 1) if pairCTA else None` to the autotune config - `generative_recommenders/ops/triton/triton_addmm.py`: Added `c.ctas_per_cga = (2, 1, 1) if pair_cta_compatible else None` in `_prune_configs_for_pair_cta` The `ctas_per_cga` parameter enables CUDA-native cluster launch semantics (TLX way), which differs from Triton's `num_ctas` approach: - **Triton's way** (`num_ctas`): Grid is multiplied by cluster_dims to get total CTAs - **TLX/CUDA way** (`ctas_per_cga`): Grid equals total CTAs, ctas_per_cga regroups them into clusters Reviewed By: rafaykhurram Differential Revision: D89439254
htyu
approved these changes
Dec 18, 2025
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.
Differential Revision: D89439254