[Example] Add TileKernels Examples in Tilus#155
Open
WilliamZhang20 wants to merge 16 commits intoNVIDIA:mainfrom
Open
[Example] Add TileKernels Examples in Tilus#155WilliamZhang20 wants to merge 16 commits intoNVIDIA:mainfrom
WilliamZhang20 wants to merge 16 commits intoNVIDIA:mainfrom
Conversation
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
Signed-off-by: William Zhang <wzhang20@yahoo.com>
yaoyaoding
reviewed
May 9, 2026
Member
yaoyaoding
left a comment
There was a problem hiding this comment.
Thanks @WilliamZhang20 , LGTM in general.
Comment on lines
+76
to
+86
| @property | ||
| def tma_predicate(self): | ||
| # Inside single_thread() only one thread runs the TMA call, so the | ||
| # @pred predicate is the constant 1. At warp scope we still need to | ||
| # select a single lane, so use the elected leader-lane predicate to | ||
| # avoid an if-branch divergence. | ||
| from tilus.hidet.ir.dtypes import uint32 as _u32 | ||
|
|
||
| if self.current_num_threads == 1: | ||
| return _u32(1) | ||
| return self.contexts.leader_lane_ctx.leader_lane |
Member
There was a problem hiding this comment.
if this is tma-specific, we might move to tma emiter. this class is better to only put the common utility.
Member
|
/ok to test e6c70ef |
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.
Kernel List:
swiglu_forward_and_per_token_cast_kernelper_token_cast