Replies: 2 comments
-
In my opinion, MLIR is the future as more projects rely on it, the big question is how we can support it. it would be nice to have a small example of Python code with some benchmarks where we show all the necessary steps, from the Python code to the MLIR representation and then we compile it and call it back from Python. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
MLIR
(Multi-level Intermediate Representation) is a modern compiler infrastructure which is reusable and extensible. It reduces the cost of building domain-specfic compilers by facilitating the design and implementation of code generators, translators, and optimizers at different abstraction levels.
MLIR is a subproject of the LLVM project, and has many similarities to the LLVM compiler infrastructure. 1
PYCCEL
A Python library which acts as a transpiler by translating
Python code to either Fortran or C code, and as an accelerator by making the generated code
callable from Python once again. 2
General
-O3
.Objective
The objective of this discussion is to initiate a conversation and collect ideas about the potential requirement of MLIR for Pyccel. and to explore the possible ways of integrating MLIR as an extension for Pyccel (considering the implementation aspect).
Footnotes
Compiling ONNX Neural Network Models Using
MLIR ↩
Pyccel: a Python-to-X transpiler for scientific
high-performance computing ↩
High Performance Code Generation in MLIR: an Early
Case Study With Gemm ↩
Beta Was this translation helpful? Give feedback.
All reactions