commit | 41e7289dfb54dacc50be524949e01684557ab3d5 | [log] [tgz] |
---|---|---|
author | bjacob <benoitjacob@google.com> | Mon Oct 30 13:55:25 2023 -0400 |
committer | GitHub <noreply@github.com> | Mon Oct 30 13:55:25 2023 -0400 |
tree | 2d01db8e924fed140ccb1672c759f351d2cc1013 | |
parent | aeb38b0a65f5748a39ef82bdf5dfb641f7372ff6 [diff] |
ukernels: stop abusing signless as signed (#15338) In MLIR we are chronically abusing signless types as signed. Ongoing discussion at #15241, etc. At least in ukernels we are insulated enough from the compiler code that we don't have to replicate the same confusion. So, just because `linalg` named matmul ops want `int8 x int8 -> int32` matmuls to be represented as `i8 x i8 -> i32` even though these are signless types and this is silently interpreting these as signed, we didn't have to let that lower to a `_i8i8i32` ukernel, we could instead more properly represent that as a `_s8s8s32` ukernel. Fixing this now paves the way for unsigned LHS/RHS support in ukernels, a step in #15158, without adding more tech debt. The bulk of is PR is just a regex substitution: ``` find runtime/src/ compiler/src/ -type f | xargs sed -i 's/IREE_UK_FLAG_MMT4D_TYPE_I8I8I32/IREE_UK_FLAG_MMT4D_TYPE_S8S8S32/g;s/iree_uk_mmt4d_type_i8i8i32/iree_uk_mmt4d_type_s8s8s32/g;s/iree_uk_mmt4d_tile_i8i8i32/iree_uk_mmt4d_tile_s8s8s32/g;s/iree_mmt4d_reference_innerloop_i8i8i32/iree_mmt4d_reference_innerloop_s8s8s32/g' ```
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.