Skip to content

Merge main -> google - #3142

Merged
copybara-service[bot] merged 10 commits into
iree-org:googlefrom
ScottTodd:main-to-google
Sep 15, 2020
Merged

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

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

ScottTodd and others added 10 commits September 11, 2020 10:13
* `hal.device` can be retrieved from `hal.command_buffer`
* `hal.executable` can be retrieved from `@executable::@target::@entry_point` nested references

This adds a new `hal.command_buffer.device` op to help keep the IR tidy, with a new canonicalization pattern for when it refers to a device that was created in the same scope.

Since the new op is created within a `hal.device.switch`, the canonicalization is not used. However, since `MaterializeResourceCachesPass` does not yet support multiple devices, the lowerings still "work" as written today, without needing to add a runtime op for the device query.

Progress on iree-org#1890
* 5b26407 Merge pull request iree-org#3120 from hanhanW:main-to-google
* f3ed1be Synchronize submodules
* bbd6a602 Integrate LLVM at llvm/llvm-project@009cd4e49103
* 2728681 Synchronize submodules
* 0857d5f Integrate TF at tensorflow/tensorflow@ef9971b6d7a1
* e9b83a4 Synchronize submodules
* f32f2ae Integrate LLVM at llvm/llvm-project@be7cef789e75
* 388e74b Remove mlir-auto-init.cpp : registration is explicit now.
This commits adds Metal implementation for hal::Allocator and
hal::Buffer and completed command buffer APIs for filling/copying
buffers.

CTS tests are updated to cover the new APIs implemented.
MapMemory() already handles the offset. There is no need to
add the offset again when filling or copying.
Note that we still specify the container that Kokoro preloads on VM
creation based on the `prod` tag, so it remains important to update
that. If the sha256 specified matches the already loaded image, Docker
will recognize this and not pull again. There are no new download steps
in the logs for the Kokoro runs here. Contrast with the case where
Docker can't find the image and pulls it when `docker run` is invoked:
["Unable to find image 'gcr.io/iree-oss/bazel:latest' locally
latest: Pulling from iree-oss/bazel"](https://source.cloud.google.com/results/invocations/e7b18431-2183-4fe1-9616-6f43b0f619a9/)

Note that the swiftshader builds actually do have download steps. Looks
like we didn't set up preloading for those images (although it only
appears to take 15 seconds, so maybe that isn't such a big deal...)

This mostly involves renaming and expanding the python script for
managing our docker containers, including adding functionality to
update image references and fixing the broken topological sort
function.

Part of iree-org#3117
@google-cla google-cla Bot added the cla: yes label Sep 14, 2020
@copybara-service
copybara-service Bot merged commit 72f9c3c into iree-org:google Sep 15, 2020
@ScottTodd ScottTodd mentioned this pull request Sep 15, 2020
ScottTodd added a commit that referenced this pull request Sep 15, 2020
* 72f9c3c Merge pull request #3142 from ScottTodd:main-to-google
* 2fbc097 Synchronize submodules
* 966ae6d Integrate TF at tensorflow/tensorflow@86b67b8c829a
* f17c599 Synchronize submodules
* 06f383a Integrate LLVM at llvm/llvm-project@7841e21c9849
* 1ca3126 Synchronize submodules
* 637f25b Integrate LLVM at llvm/llvm-project@c799f873cb9f
* 7a15ffb Synchronize submodules
* 58126a1 Integrate LLVM at llvm/llvm-project@0008fb343704
* b0a428e Synchronize submodules
* 37c516f Integrate LLVM at llvm/llvm-project@cb3e1dd6c31e
* a618224 Synchronize submodules
* 5aa4f0e Integrate LLVM at llvm/llvm-project@c0bcd11068fc
* 43a979f Synchronize submodules
* 16f9bce Integrate LLVM at llvm/llvm-project@f086e85eea94
* b0a497a Synchronize submodules
* 5845ac5 Integrate LLVM at llvm/llvm-project@70daa353e2ae
* 43eeb1e Synchronize submodules
* 6e1f490 Integrate LLVM at llvm/llvm-project@c2f8bc986fb3
* 611c9a1 Synchronize submodules
* 8745b7a Integrate LLVM at llvm/llvm-project@0680a3d56d8b
* a93f413 Synchronize submodules
* 90305fd Integrate LLVM at llvm/llvm-project@0e0d93e2f09a
* 5754997 Synchronize submodules
* fb7b8fe Integrate LLVM at llvm/llvm-project@f2bb4b88550a
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.

6 participants