Skip to content

Merge main -> google - #2512

Merged
copybara-service[bot] merged 18 commits into
iree-org:googlefrom
ScottTodd:main-to-google
Jul 14, 2020
Merged

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

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Jul 14, 2020 •

Copy link
Copy Markdown
Member

ScottTodd and others added 11 commits July 13, 2020 11:34
* 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.
…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 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
ScottTodd marked this pull request as ready for review July 14, 2020 16:31
ScottTodd and others added 5 commits July 14, 2020 10:29
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.
@copybara-service
copybara-service Bot merged commit 764c9dd into iree-org:google Jul 14, 2020
@ScottTodd
ScottTodd deleted the main-to-google branch July 14, 2020 22:48
@ScottTodd ScottTodd mentioned this pull request Jul 16, 2020
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
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.

7 participants