Closed lordrebel closed 2 months ago
If you want to directly convert TTIr to Linalg IR, you need to use the triton-to-linalg pipeline. The convert-triton-to-linalg is a standalone pass, but for a complete conversion, all the passes in the repository must be executed in a specific order. During the execution of convert-triton-to-linalg, some preprocessing passes are required, which is why an error occurs. Therefore, you need to use triton-linalg-opt --triton-to-linalg tt.mlir
to complete the conversion. If you want to see the full sequence of pass calls in the pipeline, you can add --mlir-print-ir-after-all to view which passes are executed and their results during the pipeline execution.
i will try
thx
hi!
I try to use triton python demo to generate ttir and compare
triton-shared
andtriton-linalg
,when i use the ttir generated from triton/python/tutorials/03-matrix-multiplication.py I got an error:the ttir i used is:
which is generated from triton(263fb70281f40cdb44768ae0cbf016181860c409)