[Codegen] Add pass to further tile large linalg ops (#19010) In certain cases/configurations we can end up with excessively large static `linalg.generic` ops that will then vectorize and emit code with huge vector sizes. This at a minimum will yield terrible code, and can even crash/hang LLVM when trying to compile such an enormous function. The implementation here only looks at parallel dims and linalg ops. Large reductions and other vectorizable ops will likely need handling as well, but "vectorizability" isn't really queryable today. The pass has an options for a maximum vector size to tile to, but the logic here could potentially use some future improvement (e.g. maybe expose a target vector size too to use when we choose to tile). Also note that in many cases where we hit this is likely to generate poor code because we can often end up with large local/stack allocations, but by the time we get to this point there isn't much else we can do. Better to ask for an allocation than 10k lines of unrolled IR.
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels
| Package | Release status |
|---|---|
| GitHub release (stable) | |
| GitHub release (nightly) | |
| Python iree-compiler | |
| Python iree-runtime |
| Host platform | Build status |
|---|---|
| Linux | |
| macOS | |
| Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.