Repository navigation
Merge main -> google - #5339
Closed
NatashaKnk wants to merge 51 commits into
Closed
Merge main -> google#5339NatashaKnk wants to merge 51 commits into
NatashaKnk wants to merge 51 commits into
Conversation
NatashaKnk
commented
Apr 7, 2021
Contributor
- 734ec24 Add smoketest_linalg_on_tensors to LLVM and Vulkan-SPIRV targets. (Add smoketest_linalg_on_tensors to LLVM and Vulkan-SPIRV targets. #5324)
- d8bcb78 Drop absl logging and flat_hash_map. (Drop absl logging and flat_hash_map. #5334)
- 5c63668 [vulkan] Disable ResNet50 test failing on NVIDIA GPUs ([vulkan] Disable ResNet50 test failing on NVIDIA GPUs #5332)
- 55d3715 Fix vulkan_device struct manipulation issue with std::vector. (Fix vulkan_device struct manipulation issue with std::vector. #5333)
- 47d00c6 Fix benchmarking MobileNetV2 on S20 GPU in Linalg on tensor path. (Fix benchmarking MobileNetV2 on S20 GPU in Linalg on tensor path. #5331)
- ccae793 Fix bugs in ExtractReduceWindowOpPaddingAttributes. (Fix bugs in ExtractReduceWindowOpPaddingAttributes. #5329)
- 652e328 Don't inline block arguments that can be written (Don't inline block arguments that can be written #5247)
- 86e7d29 [CodeGen] Enable fusion with consumer elementwise ops ([CodeGen] Enable fusion with consumer elementwise ops #5282)
- 44ad774 Integrate MLIR-EmitC at iml130/mlir-emitc@3c265bf (Integrate MLIR-EmitC at iml130/mlir-emitc@3c265bf #5326)
- 0141857 Added pad test, update LegalizeInputTypes to allow linalg.yield (Added pad test, update LegalizeInputTypes to allow linalg.yield #5305)
- 5a3653f Add mobile-bert f16 version to Mako benchmark. (Add mobile-bert f16 version to Mako benchmark. #5204)
- f596cdb Add a target_env_conversion test for Linalg on tensors. (Add a target_env_conversion test for Linalg on tensors. #5309)
- f1aa6f4 Print out the status when iree-check-module fails (Print out the status when iree-check-module fails #5323)
- 40d7589 Check for VMLA and Vulkan components for simple_embedding_test. (Check for VMLA and Vulkan components for simple_embedding_test. #5318)
This only runs on S20 GPU. The batch_size=1 because the current benchmarking mechanism does not reflect real performance. See iree-org#5248
…-org#5305) LegalizeInputTypes assumes no yield ops, updated so that it can handle nested linalg blocks. Simple pad test to verify.
This commit adjusts dispatch region formation logic to allow fusing operands of root ops. Given linalg.generic as a root and consumer op, this enables fusing producer convolution ops into the same region. This fixes the MobileNet v2 performance regression on the tensor path: the number of kernel dispatches for MobileNet v2 goes from 146 down to 103; the latency goes from 30+ms down to 18ms. (On the buffer path we were at ~20ms.)
We cannot just simply inline and replace all users for the DispatchWorkgroupsOp if it is an argument that can be written; for example, the region might perform work after loading a initial constant from the argument and then write back.
The padding attribute can be extracted if all the dilation values are 1 or not set.
…ee-org#5331) See iree-org#5282 for more details. The Linalg on tensors path should work with `-iree-spirv-enable-vectorization`, also added the forgotten flag.
…rg#5333) More fallout from iree-org#5302 :/ Actually caught by validation layer warnings about `pQueuePriorities` being null when it must not be. In debug builds, this incorrect use of references sometimes allocated crazy amounts of memory by using uninitialized memory as the size to resize to... ouch.
More discussions in iree-org#5268. Disable it for now to avoid hiding other failures.
…ee-org#5324) The purpose is to check if hal.executable.binary has correct information, e.g., @llvm_aot, format in the attributes. Although this does not adapt the tests from legacy pass, we can drop those tests and use the added one when migrating to Linalg on tensors. Part of iree-org#5155
Fixes flags import error and iree_hal_buffer_view_create() signature change.
….{load|store} ops (iree-org#5335)
Use OffsetSizeAndStrideOpInterface for flow.dispatch.tensor.{load|store} ops to enable mixed static / dynamic operands.
iree-org#5288) Lowering tosa.apply_scale is performed at the end of compilation to support custom cpu lowerings. The default implementation perform all arithmetic with 64-bit operators. Rescale tests that depend on this behavior are included and Mul was updated for its shift behavior.
Remove an extra comma that jumped in due to bad autoformatting 😞
copybara-service Bot
pushed a commit
that referenced
this pull request
Apr 8, 2021
* 734ec24 Add smoketest_linalg_on_tensors to LLVM and Vulkan-SPIRV targets. (#5324) * d8bcb78 Drop absl logging and flat_hash_map. (#5334) * 5c63668 [vulkan] Disable ResNet50 test failing on NVIDIA GPUs (#5332) * 55d3715 Fix vulkan_device struct manipulation issue with std::vector. (#5333) * 47d00c6 Fix benchmarking MobileNetV2 on S20 GPU in Linalg on tensor path. (#5331) * ccae793 Fix bugs in ExtractReduceWindowOpPaddingAttributes. (#5329) * 652e328 Don't inline block arguments that can be written (#5247) * 86e7d29 [CodeGen] Enable fusion with consumer elementwise ops (#5282) * 44ad774 Integrate MLIR-EmitC at iml130/mlir-emitc@3c265bf (#5326) * 0141857 Added pad test, update LegalizeInputTypes to allow linalg.yield (#5305) * 5a3653f Add mobile-bert f16 version to Mako benchmark. (#5204) * f596cdb Add a target_env_conversion test for Linalg on tensors. (#5309) * f1aa6f4 Print out the status when iree-check-module fails (#5323) * 40d7589 Check for VMLA and Vulkan components for simple_embedding_test. (#5318) COPYBARA_INTEGRATE_REVIEW=#5339 from NatashaKnk:main-to-google dea40ed PiperOrigin-RevId: 367330863
* LLVM integrates
- Update `iree-import-*` to use `--mlir-print-op-generic` and `--mlir-print-debuginfo` to control formatting and debuginfo. - Update the python bindings to control these via `CompilerOptions.output_generic_mlir=False` and `CompilerOptions.output_mlir_debuginfo=True`. - Small changes for formatting consistency between `core.py`, `tf.py` `xla.py` and `tflite.py`.
…e-org#5343) Constant ops are typically placed at the beginning of the block. If we need to copy the constant to an already existing buffer, we need to make sure to insert the new copy op after that buffer, which can be after the constant op. Otherwise we'll see def not dominating use.
iree-github-actions-bot
force-pushed
the
google
branch
from
April 8, 2021 14:30
20ffad2 to
41a32b7
Compare
Update SUBMODULE_VERSIONS.txt to fix iree-org#5354
After removing copy/fill from the compiler the only users are now C code that can be easily changed to do the right thing.
…e-org#5269)" This reverts commit ade7ff1.
This dramatically reduces the stream captures (from 1000 to 3 in BERT) and enables subsequent passes to know when a dispatch is using a constant.
This will insulate the old code paths from coming interface changes that are not compatible with them.
Removing hack that forced all Vulkan buffers to be host-visible. Fixes iree-org#5268.
Adding `-iree-hal-materialize-interfaces2` to finally use `hal.interface` (mostly) as it was intended
Adds code to enable native logging on android. Bindings are behind a __ANDORID__ flag to enable. Logs are given tag native.
…e-org#5360) With the shape carrying op interface these no longer show up.
- Fixes iree-org#5320, which was the result of an off by one error in the function ABI. - Defaults to interpreting Sequences as Tuples to match python function semantics - Pins `yapf==0.30.0` to avoid google/yapf#913
1. VMLA is going to be deprecated. 2. The flow pipeline will be different between VMLA and Vulkan. One will go with legacy path, and another will go with `iree-flow-dispatch-linalg-on-tensors` Fixes iree-org#5373
It shouldn't be needed there as buffers are allocated top-down.
- Forward buffer assigned to tensor.cast output to its input
Although mhlo.constant can take unsigned integers, std.constant requires integer result types to be signless. Legalize all to i32 for consistency, and it will make things easier. E.g., we do not have to handle lowering mhlo.constant on ui64 to std.constant. Part of iree-org#5383
* MaterializeCPULaunch configurations before bufferization - Move materlialize configs to be the first thing to run. - Move distributed affine.min and other canonicalization passes to run as post materialization step.
* LLVM integrates
NatashaKnk
force-pushed
the
main-to-google
branch
from
April 9, 2021 21:19
dea40ed to
29610ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.