Repository navigation
Merge main -> google - #2512
Merged
copybara-service[bot] merged 18 commits intoJul 14, 2020
Merged
Merge main -> google#2512
Conversation
* 5521b89 Synchronize submodules * 355f858 Integrate TF at 12b62d11b6f7 * 87e0021 Synchronize submodules * d54021b Integrate LLVM at llvm/llvm-project@6bda276f9302 * 6916b12 Synchronize submodules * 89b6b8a Integrate LLVM at llvm/llvm-project@e808cab82448 * 6f1e3d5 Synchronize submodules * 46bac4b Integrate LLVM at llvm/llvm-project@943660fd15f1 * cc491d2 Release instance, context, and module in cc wrappers when freed in the java api
A Tensorflow canonicalization will handle this behavior at a higher level in the IR. Removing this test so it can land.
…ee-org#2411) Progress on exposing semaphores for bindings to use, per discussions relating to iree-org#1285. At the moment these `$async` functions just wrap the `$sync` functions and include wait/signal semaphore arguments. A future change can go through and invert this (`$sync` wrap `$async` and wait/signal local semaphores). IR looks roughly like: ```mlir func main$sync(buffer_view_args...) -> hal.buffer_view attributes { ... } { // buffer_view handling call @main // buffer_view handling } func main$async(wait_semaphore, wait_value, buffer_view_args..., signal_semaphore, signal_value) -> hal.buffer_view { hal.semaphore.await wait_semaphore, wait_value call @main$sync hal.semaphore.signal signal_semaphore, signal_value } ``` Here is a more complete snippet: [async_dynamic_add.mlir](https://gist.github.com/ScottTodd/84b2fb346ee157c643d7f5c1703414c1).
…rg#2501) This can serve as a temporary solution to unblock development until the root case for iree-org#2494 is discovered and fixed.
Part of iree-org#2495 Tested: Pushed images with the `latest` tag and updated Kokoro to point at them in this PR: - https://source.cloud.google.com/results/invocations/c88b58e2-a6e9-479e-bf97-fddcb93b0fb1 - https://source.cloud.google.com/results/invocations/2a8af5a3-0387-425d-9597-cf6cd04fa4ad - https://source.cloud.google.com/results/invocations/d6336b85-30a2-4c78-b25a-3126a482bab8 Will drop the "latest" tag commit before merging and then push a prod image update after. Did an actual upgrade of the requested Bazel version in iree-org#2496 and ran Kokoro with the new images on that as well.
…ass (iree-org#2499) Unlike MLIR, LLVM `createXXX` pass creation functions return a raw pointer. Wraper this pointer into a unique_ptr to cleanup on scope exit.
Fixes iree-org#2495 Requires updating the bazel_toolchains version (including our hacky patch) and the RBE container base hash as well. I already pushed the new RBE container, since it's by hash, not by label.
- `BackendInfo` and all classes related to `CompiledModule` are all moved to `tf_utils.py` as they have functionality outside of testing. - `_IreeModuleInstance` and `_TfModuleInstance` are both subsumed into `IreeCompiledModule` and `TfCompiledModule` respectively. - This provides a simple high level API for compiling `tf.Module`s in Python via `IreeCompiledModule.compile(...)` and then directly using them for computation. - The ability to create reinitialized instances is now provided via `ComiledModule.from_existing(module)`. - A unit test of this functionality is also added.
This enforces some basic restrictions on PR titles as good commit titles. Tested: https://github.com/google/iree/pull/2481/checks?check_run_id=859804845 gave a nice failure
This was broken by the Bazel upgrade, but I didn't notice because it isn't covered by any presubmits. Sorry! Part of iree-org#2510
ScottTodd
marked this pull request as ready for review
July 14, 2020 16:31
We've been passing with this enabled before, but were not enforcing it in open source builds.
Building with RBE will require upgrading to Bazel 3.0+ because of google/oss-fuzz#3093. TF is already on 3.1.0, so we should probably upgrade anyway. Tested: `bazel test --config=rs --config=asan //iree/...` Two vulkan failures: https://source.cloud.google.com/results/invocations/fa1c4e13-305e-4467-aac5-97773a0ecf57 Reverted the type registration added to fix a leak in iree-org@dde06c0 and confirmed an asan failure `bazel test --config=rs --config=asan //iree/vm:list_test` https://source.cloud.google.com/results/invocations/7dfc3bcc-b837-4139-9649-f4156dd782bf
A few misc cleanups to our bazelrc: 1. Avoid duplicate config expansion, which creates annoying warnings. 2. Turn visibility checking back on, since we're now using Ruy from its own repo. 3. Add a few more documentation comments and fix some column limits.
This test is now passing internally on Vulkan and @ScottTodd has tested it locally in OSS.
* 3a84646 Merge branch 'main' into google-to-main * 60ce387 [ModelBuilder] Re-enable transfer JIT test * 7a46740 Synchronize submodules * 9649cb7 Integrate TF at https://github.com/tensorflow/tensorflow/commit/ 2f4444c1cff * c96b251 Synchronize submodules * 8aa1fa9 Integrate LLVM at llvm/llvm-project@84a1bc7f2c0c * 66ca884 Synchronize submodules * 2239c8b Integrate LLVM at llvm/llvm-project@300156932321 * 6e80f52 Synchronize submodules * de5d794 Integrate LLVM at llvm/llvm-project@3667d87a33d3 * 78352fa Synchronize submodules * 356ab20 Integrate LLVM at llvm/llvm-project@74c14202d90b * 88075e6 Synchronize submodules * 5433f83 Integrate LLVM at llvm/llvm-project@869d05fb3e44 * 6ff5fc7 Synchronize submodules * 621ee82 Integrate LLVM at llvm/llvm-project@83080a294ad7 * 5584b4a [ModelBuilder] Temporarily disable transfer JIT test while fixing bug * 0c0e2ba Merge pull request iree-org#2504 from ScottTodd:main-to-google
These tests are blocking iree-org#2512. Looks like they started failing with iree-org#2509.
ScottTodd
force-pushed
the
main-to-google
branch
from
July 14, 2020 22:16
0ac3cf5 to
6c22d18
Compare
Closed
Merged
ScottTodd
added a commit
that referenced
this pull request
Jul 16, 2020
* b2145c7 Synchronize submodules * 13bdb7e Integrate TF at tensorflow/tensorflow@33a4c1a0aba * c89e8ee Merge pull request #2543 from ScottTodd:main-to-google * 8be9242 Synchronize submodules * b0737d2 Integrate LLVM at llvm/llvm-project@1067d3e176ea * 3e574a9 Synchronize submodules * d875628 Integrate LLVM at llvm/llvm-project@b2018198c32a * 28e7bc2 Synchronize submodules * 3f7687c Integrate LLVM at llvm/llvm-project@f233b92f92a6 * af5f150 Adds a way to register modules with the context through the java API * 79586bd Synchronize submodules * 95d8c9f Integrate TF at ebcd2928f5b0 * 3aadd21 Synchronize submodules * 0ee9524 Integrate LLVM at llvm/llvm-project@c11c78a1bd0b * 0bdd8f2 Synchronize submodules * 89bf08f Integrate LLVM at llvm/llvm-project@f782d9c7002e * 764c9dd Merge pull request #2512 from ScottTodd:main-to-google
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.
tensorlist_testonvulkan. (Enablestensorlist_testonvulkan. #2520)tf_utils.py(Moved CompiledModule and BackendInfo totf_utils.py#2509)