[DT][VMVX] Implement VMVXEncodingLayoutAttr. (#19403) The revision implements the VMVX encoding layout attribute for device code with the new IREE::CPU dialect. Some additional dialect registration is needed because it could create the VMVXEncodingLayoutAttr attribute in the pass pipeline; the dialect needs to be loaded. The main refactoring changes are: - Move chooseMatmulTile to IREECodegen/Utils. We can internalize the method once other CPU materialization logic is moved to their own attribute implementation. - Move the enumerateMatmulTilesVMVX method to CPUEncodingExternalModels.cpp. It is only used by VMVX implementation. On the Codegen utilitiy side (i.e., Codegen/Utils.[h|cpp]), the revision adapts config query methods to use `Attribute`, and share the logic with DictionaryAttr type. Previously, the configuration is wrapped into IREE::HAL::ExecutableTarget attribute. Now we have DictionaryAttr variants and we do not want to duplicate the implementation. Thus, the functions take Attribute input and handle the cases in the implementation. On the data-tiling encoding materialization pass side, it creates the VMVXEncodingLayoutAttr attribute (with the original target configuration). Note that the target configuration is an optional parameter and it is expected to be used within pass scope, but not the final IR output. No additional tests because they are covered by vmvx_materialize_encoding.mlir. --------- Signed-off-by: hanhanW <hanhan0912@gmail.com>
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-base-compiler | |
| Python iree-base-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.