Replies: 2 comments 2 replies
-
@ptillet to hear your input for this. |
Beta Was this translation helpful? Give feedback.
-
These are the same IR, and indeed the frontend generates:
And we have a rewrite rule that translates it into
At the Triton-IR level, before the layouts are introduced. The rationale for having |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is the
$c
operand unnecessary in dot op?According to dot's definition, its semantic is like
$d = matrix_multiply($a, $b) + $c
, and both the$c
and$d
have the same MMA layout.I wonder whether the following two IR are the same:
and
In my understanding, the
$c
operand in dot is unnecessary, we can use a separatearith.addf
to get the same result.What's more, there are separate codegen-support for the binary ops, it seems that we can reuse them with
convert_layout(MMA -> blocked)
, for example:Please correct me if I am wrong.
Beta Was this translation helpful? Give feedback.
All reactions