Skip to content

Merge main -> google - #5062

Merged
copybara-service[bot] merged 10 commits into
iree-org:googlefrom
ThomasRaoux:main-to-google
Mar 11, 2021
Merged

copybara-service[bot] merged 10 commits into
iree-org:googlefrom
ThomasRaoux:main-to-google

Conversation

@ThomasRaoux

Copy link
Copy Markdown
Contributor

MaheshRavishankar and others added 10 commits March 9, 2021 14:35
linalg.pad_tensor cannot be represented as a structured
operation. Instead it is lowered to

%b = linalg.fill(%dest, %pad_val)
%c = subtensor_insert %source into %b[%low_pad_0, %low_pad_1, ...]

This requires handling subtensor_insert when converting from tensors
to buffers. This can be done effectively only when it is possible to
do in-place updates within dispatch regions. So currently only support
this on CPU side.
We don't want to try to create merge commits from things that don't have the Copybara
tag or are already merge commits, but we do still want to fix submodules. Probably if it's
a merge commit it shouldn't have messed up submodules anyway, but we want to exit
successfully if it doesn't have the Copybara tag. Otherwise we will fail on every google
export (like https://github.com/google/iree/runs/2071416701)

TESTED=yolo
* 4fe920a Merge main -> google
* 141ed28 Merge branch 'google' into main-to-google
* f0bdad9 Synchronize submodules with LLVM at llvm/llvm-project@3f3f88f
* 62d59b1 Integrate LLVM at llvm/llvm-project@df6d057
* f588746 Synchronize submodules with LLVM at llvm/llvm-project@3f3f88f
* 2d66908 Disable IREE CUDA tests broken internally
* 2365586 Integrate LLVM at llvm/llvm-project@3f3f88f
These are now supported on all backends, so don't need to be separate.
Also deleted the whole `xla_ops/partial` directory, since it existed
only for this purpose. I could leave it for future folks, but I'm not
sure how many cases of this sort of thing we're going to have and they
could also pull it back from the history.
Allows to remove the header only implementations from iree/vm/ops.h.
Depends on iree-org#5026.
This also introduces the concept of bufferization of shape-only operand.
If an init_tensor op can not map to a buffer, a fake/temp memref will be
allocated. And we rely on later passes to delete the alloc op. This is
similar to what we did to lower mhlo.reduce_window to linalg.pooling_*.
If `--iree-hal-benchmark-dispatch-repeat-count` is set during a translation, all the
hal.command_buffer.dispatch ops will be run
`iree-hal-benchmark-dispatch-repeat-count` times. In this context, you have to pass
the same number on `--batch_size` to iree-benchmark-module.

This is helpful to amortize overhead when the execution time is small.

Fixes iree-org#3995
…rg#5029)

This rewrites the `compile_android_modules.sh` with python, and adds support for setting up different compilation flags for different phones.

The performance of MobileBert on S20 on GPU goes down to 490 ms.
* 2436af4 Synchronize submodules with LLVM at llvm/llvm-project@4c973ae
* 98d3a7c Integrate LLVM at llvm/llvm-project@4c973ae
* f795950 Synchronize submodules with LLVM at llvm/llvm-project@df6d057
@google-cla google-cla Bot added the cla: yes label Mar 11, 2021
@copybara-service
copybara-service Bot merged commit c9c644c into iree-org:google Mar 11, 2021
GMNGeoffrey added a commit that referenced this pull request Mar 11, 2021
hanhanW pushed a commit to hanhanW/iree that referenced this pull request Mar 12, 2021
* c9e5da3 Merge pull request iree-org#5078 from ThomasRaoux:main-to-google
* 284e68c Synchronize submodules with LLVM at llvm/llvm-project@720a828
* c0ae7a2 Integrate LLVM at llvm/llvm-project@720a828
* 0aebce2 Merge pull request iree-org#5062 from ThomasRaoux:main-to-google
* 56e4fd1 Merge pull request iree-org#5060 from google:llvm-dependent-submodule-update
* 0f70af6 Integrate LLVM at llvm/llvm-project@4c973ae
* f156c24 Synchronize submodules with LLVM at llvm/llvm-project@4c973ae
* 894c758 Synchronize submodules with LLVM at llvm/llvm-project@df6d057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants