Improvements Dispatch Generator - MLIR Source Generation and Defining Dispatches (#12792) This PR is in series of smaller PRs to iteratively improve IREE dispatch profiler. The improvements captured in this PR are as follows: - `EmitSourceMLIR` instead of `EmitMatmulSourceMlir`: Once the `operation` and `configuration` are properly abstracted out, there was very little matmul-specific code for emitting dispatch (operation + configuration). Thus, moved EmitSourceMLIR into its own structure which can be potentially used by new dispatches. - Dispatches are **generated** and **profiled** from a predefined shapes, datatypes, and tuning configurations. Both generation and profiling loads the predefined dispatches for a specific data type in a `Manifest` object. The definitions of dispatches are operation- and device-specific. Thus, abstracted out into its own structure `class MatmulGenerator`. Which can be loaded using `Manifest.load()`. - Additionally, `class MatmulGenerator` executes a few simple checks to skip dispatches that a user might naively define but not supported because of architectural constraints (e.g. shared memory capacity) or unsupported codegen path (e.g. unaligned matmuls on CUDA tensor core backend).
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!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.