Skip to content
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

[BACKEND] Tweak convert_layout backward propagation #3381

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

ThomasRaoux
Copy link
Collaborator

Add some extra heuristic to the convert layout backward propagation to consider convet_layout that are known to be no-ops. In this kind of cases we want to make sure we don't assume that folding it with another convert would be free.

Add some extra heuristic to the convert layout backward propagation
to consider convet_layout that are known to be no-ops.
In this kind of cases we want to make sure we don't assume that
folding it with another convert would be free.
@ThomasRaoux ThomasRaoux requested a review from ptillet as a code owner March 15, 2024 01:11

module attributes {"triton_gpu.num-ctas" = 1 : i32, "triton_gpu.num-warps" = 8 : i32, "triton_gpu.threads-per-warp" = 32 : i32} {
// Verify that we don't hoist the convert on top of the broadcast. In general we should hoist the convert to reduce its cost
// but because this would make use combine the 1st and second convert and the 1st convert is known to be a no-op this would
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/make use combine/combine/?

@ThomasRaoux ThomasRaoux enabled auto-merge (squash) March 15, 2024 17:22
@ThomasRaoux ThomasRaoux merged commit 82f7eae into triton-lang:main Mar 15, 2024
5 checks passed
karupayun pushed a commit to openxla/triton that referenced this pull request Apr 3, 2024
Add some extra heuristic to the convert layout backward propagation to
consider convet_layout that are known to be no-ops. In this kind of
cases we want to make sure we don't assume that folding it with another
convert would be free.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants