Skip to content

Update SwiftShader to 2021-09-21 @755b78dc - #7117

Merged
antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:update-swiftshader
Sep 21, 2021
Merged

antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:update-swiftshader

Conversation

@antiagainst

Copy link
Copy Markdown
Member

This includes fixes for https://issuetracker.google.com/issues/197982536
so that we can turn on module linking on SPIR-V side.

@google-cla google-cla Bot added the cla: yes label Sep 21, 2021
@ScottTodd ScottTodd added codegen/spirv SPIR-V code generation compiler backend infrastructure Relating to build systems, CI, or testing labels Sep 21, 2021
@antiagainst
antiagainst enabled auto-merge (squash) September 21, 2021 20:03
@antiagainst
antiagainst merged commit 0d668d5 into iree-org:main Sep 21, 2021
@rsuderman rsuderman mentioned this pull request Sep 22, 2021
@antiagainst
antiagainst deleted the update-swiftshader branch October 2, 2021 18:10
@GMNGeoffrey

GMNGeoffrey commented Oct 21, 2021 •

Copy link
Copy Markdown
Member

FYI, this and #6859 didn't actually update the rbe-toolchain image. I tried rebuilding recently and had to downgrade the swiftshader commit because swiftshader doesn't build at the newer commit. I think the issue is that the rbe-toolchain is Ubuntu 16.04 with clang 3.8. It's not finding C++17 std::shared_mutex:

/install-swiftshader/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/RWMutex.h:100:8: error: no type named 'shared_mutex' in namespace 'std'; did you mean 'timed_mutex'?

Given that Ubuntu 16.04 is EOL, we're probably going to need to come up with a longer term solution. I've been postponing upgrading to Ubuntu 18.04 because RBE doesn't provide base docker images for that. But also RBE after Bazel 4 wants you to specify an egregious amount of config. It can be autogenerated and stored in GCS or something (although they recommend in source control 🤮), but I'm pondering just dropping remote execution entirely and only doing remote caching.

But anyway, for now swiftshader in the RBE containers is still at google/swiftshader@84f5eeb and in #7406 I'm making the Dockerfile actually reflect that again.

Edit: filed #7419

GMNGeoffrey added a commit that referenced this pull request Oct 21, 2021
At this point all of our builds use Python. With
#7347 the last holdouts are growing a
dep on yaml to be able to run traces. So I squashed `cmake-python` into
`cmake` and shortened all the dependents by dropping `python` from their
name.

Some other cleanups, some of which were unfortunately necessary to be able to rebuild our images. Hooray unreproducible builds!
1. The rbe-toolchain image was never actually updated to bump the swiftshader commit in #7117 and
#6859, and the newer commits don't
actually build there so I had to restore the commit in the Dockerfile to
the one that has actually always been the one the image is using. See
#7419.
2. The place we were fetching the Vulkan SDK from is no longer
available, so I had to rebundle it and stash it in our GCS. Upgrading
Vulkan is a huge undertaking that I'm not going to undertake right now.
3. Deleted the `cmake-bazel-frontends-android` image, which is
unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen/spirv SPIR-V code generation compiler backend infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants