| commit | 8e84228ad93773fe618f0acb8079cf00f13180c1 | [log] [tgz] |
|---|---|---|
| author | Diego Caballero <diegocaballero@google.com> | Mon Jul 25 19:34:42 2022 -0700 |
| committer | GitHub <noreply@github.com> | Mon Jul 25 19:34:42 2022 -0700 |
| tree | 4e5af711f07d203cb6162a6c34f74e3b9d465a3e | |
| parent | 59602cce17b87beea9e8353b6f4e765b1e968c8b [diff] |
Limit unroll factor for reductions when computing min tile sizes (#9892) Reduction vectorization is driven by the input tensors (i.e., the ones that we want to reduce). Taking into account the output's map (e.g., (d0, d1) -> (d0) when computing the minimum tile sizes for vectorization/unrolling leads to large unroll factors (i.e., UF=16 for i32 reductions, UF=32 for i16 and UF=64 for i8). This PR change the logic to limit the unroll factor for reductions when computing the minimum tile sizes. This logic should be replaced/improved to be more generic and direct, eventually. This PR is part of a set of changes aimed at improving reductions and transpositions on RISC-V. This change also helps reduce the unrolling issues that we have in IREE.
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.