commit | c4822e7db3df4a84a4ac9cd1f75aff4711acd159 | [log] [tgz] |
---|---|---|
author | Scott Todd <scotttodd@google.com> | Wed Nov 03 12:20:37 2021 -0700 |
committer | GitHub <noreply@github.com> | Wed Nov 03 12:20:37 2021 -0700 |
tree | 09617f644a62202d1534a84890a0653bf79ba928 | |
parent | 9ac2af8bd904fdafcb5c27a57e514fc7082d2779 [diff] |
Align Vulkan allocs to 4 bytes, fixing unaligned fill edge cases. (#7529) I'm not sure if there is a better way to handle this, but I was observing that a 1 byte buffer would fail all writes in the polyfilled shader (even hardcoding a write into `output_elements[0]` would do nothing). `vkCmdFillBuffer`, however, _did_ correctly write into buffers of that size. By aligning the underlying buffer allocations to 4 bytes, the polyfilled shader can now write into the only byte in a 1 byte buffer, the trailing byte in a 5 byte buffer, etc. I missed this edge case when working on https://github.com/google/iree/issues/7228. This fixes the issues I noticed on https://github.com/google/iree/pull/7370#discussion_r732949146.
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.