Skip to content

Some cleanup to docker images - #7406

Merged
GMNGeoffrey merged 4 commits into
iree-org:mainfrom
GMNGeoffrey:docker
Oct 21, 2021
Merged

GMNGeoffrey merged 4 commits into
iree-org:mainfrom
GMNGeoffrey:docker

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Oct 20, 2021 •

Copy link
Copy Markdown
Member

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 Update SwiftShader to 2021-09-21 @755b78dc #7117 and
    Update SwiftShader to 2021-08-25 #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
    rbe-toolchain image can't build latest swiftshader #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.

@google-cla google-cla Bot added the cla: yes label Oct 20, 2021
@GMNGeoffrey GMNGeoffrey changed the title Make all cmake images use cmake-python Some cleanup to docker images Oct 21, 2021
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Oct 21, 2021
@GMNGeoffrey
GMNGeoffrey requested a review from ScottTodd October 21, 2021 01:02
@GMNGeoffrey
GMNGeoffrey marked this pull request as ready for review October 21, 2021 01:02
bjacob added a commit to bjacob/iree that referenced this pull request Oct 21, 2021
bjacob added a commit to bjacob/iree that referenced this pull request Oct 21, 2021
Comment on lines 12 to +15
RUN wget -q \
"https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION?}/linux/vulkansdk-linux-${VULKAN_SDK_VERSION?}.tar.gz" \
-O "/tmp/vulkansdk-linux-x86_64-${VULKAN_SDK_VERSION}.tar.gz"
# This file disappeared from the canonical source:
# "https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION?}/linux/vulkansdk-linux-${VULKAN_SDK_VERSION?}.tar.gz"
"https://storage.googleapis.com/iree-shared-files/vulkansdk-linux-${VULKAN_SDK_VERSION?}.tar.gz"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading Vulkan is a huge undertaking that I'm not going to undertake right now.

The SDK version shouldn't really change much AFAICT. I have yet to see a backwards compatibility breaking change in there. At least for local development, I update regularly to pull in improvements to the validation layers (like new warnings about deadlocks in synchronization code or fixes for false positives - all good stuff).

The Vulkan SDK just contains things like the loader (quite stable, needed to use SwiftShader and other ICDs if your system does not come with one from a driver install already), developer tools, documentation, and samples: https://www.lunarg.com/vulkan-sdk/. It's not like the Java SDK/NDK or some other massive framework that comes with a bunch of compatibility-breaking API changes.

Fine to sequence these changes, but I'd rather we stick to the canonical sources for as many dependencies as possible.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have reproducible builds :-P But also I think there may be additional wrinkles here. I think the Vulkan SDK version may, like the GPU version, need to exactly match between the container and host [virtual] machine

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall @antiagainst picking a very specific version here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to match the Vulkan SDK version between the host VM and docker image. Actually we don't even need to install the Vulkan SDK on the host VM. I agree with Scott here that we should avoid packing Vulkan SDK and host by ourselves. I can understand the need for the GPU drivers, but I don't think Vulkan SDK falls into the same category of difficulties there.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah got it. I must have been misremembering (I thought there were two things that needed to line up?). I would agree in general, except that when we can't rebuild our own docker images, I think that's a big problem. I honestly wish there was an easy way to make everything come from things we host ourselves. Obviously there should be a pointer to the original source, but if the original source likes to randomly remove things, then that's not great...

I'm fine bumping the Vulkan SDK version now though, if you let me know what we should bump it to

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To draw an analogy, I would also like all our model sources to come from canonical places (e.g. TFHub), but actually host them ourselves. That way they can't just disappear.

@GMNGeoffrey
GMNGeoffrey merged commit ad8f733 into iree-org:main Oct 21, 2021
@GMNGeoffrey
GMNGeoffrey deleted the docker branch October 21, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants