In order to support fusion with mma matrix type we need to be able to
execute elementwise operations on them. This add an op to be able to
support some basic elementwise operations. This is a is not a full
solution as it only supports a limited scope or operations. Ideally we would
want to be able to fuse with more kind of operations.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Also looks good to me generally. Just a few nits.
mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
---|---|---|
1124 | Is this the full list? What about listing all supported ones? | |
1126 | So we don't differentiate int/float for add/mul but do so for max/min? | |
1130 | elementwise operation .. | |
1135 | Prefer to use fully qualified names like ::mlir::gpu... | |
1151 | This doc needs to be updated; It has parts not related to this op I think? "...takes a scalar input.." |
mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
---|---|---|
1124 | This is not a full list but there are no real finite list of ops that can be supported, technically any elementwise op that does't change the matrix layout can be supported. | |
1126 | Changed to ADDF/MULF | |
1151 | Oops, good catch, not sure what happened there. Updated it. |
This patch seems to break this buildbot: https://lab.llvm.org/buildbot/#/builders/160/builds/4506
Is this the full list? What about listing all supported ones?