Repository navigation
Some cleanup to docker images - #7406
Conversation
| 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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
I recall @antiagainst picking a very specific version here.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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-pythonintocmakeand shortened all the dependents by droppingpythonfrom theirname.
Some other cleanups, some of which were unfortunately necessary to be able to rebuild our images. Hooray unreproducible builds!
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.
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.
cmake-bazel-frontends-androidimage, which isunused.