-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Add llvm-15 and mlir-15 to Docker setup #14303
[CI] Add llvm-15 and mlir-15 to Docker setup #14303
Conversation
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment. Generated by tvm-bot |
@tvm-bot rerun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had a look in the possibility of adding LLVM-15 using apt.llvm.org, but it seems a bit risky due to the need to update libstdc++ globally in that image. Yesterday I pushed a PR that did the formal update in #14296.
As an alternative that doesn't require changing libstdc++, you can use the script that was introduced in #13823, which is currently in use in ci_arm
. Would you consider using that, so that we can have the same version in both images, favouring consistency across different images? If more parts of LLVM needs to be build, it would be good to have that in all images as well.
Also as another datapoint, building LLVM from source is also used in the tlcpack
packaging scripts, which would also be aligned with building LLVM from source.
(I noticed your PR is draft, but just wanted to leave this comment to be considered before we merge this)
also cc @lhutton1 who might be interested in this.
I feel it is still helpful to be able to rely on the official apt for some(wasn't aware of the source change). This is mainly because most people do not have the capacity necessarily build LLVM from scratch and being able to rely on official ones helps to reduce that burden. Perhaps we can resolve problem of libstdc++ dependency seems can be resolved by using the right version of the compiler. |
I agree. I think the problem goes away in newer versions of Ubuntu according to apt.llvm.org. Once we update Ubuntu in our CI, I think we should go with packages as we always did, for now I'd recommend building it from source. |
opened a related thread here https://discuss.tvm.apache.org/t/discuss-upgrade-overall-ci-dependency/14531 |
Thanks for the discussion, following the discussion mentioned above, would be worth installing LLVM15 from source in the meantime while the prerequisite upgrades are carried out? |
Hi. Friendly nudge so that we can take a decision on how to proceed here. I'd suggest that we build LLVM 15 from source, similar to what is being done in If we agree on this strategy, we have the option to change this PR or submitting a new one with LLVM build from source, which is equally simple as a PR. Happy to help. @lhutton1 @multiverstack-intellif @tqchen what do you think? |
I think building from source is a good temporary solution for this, since the overall upgrade may take weeks or even months to get done. I'll change the PR accordingly and ask for another review if no objection. |
6c08fca
to
a586453
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @multiverstack-intellif @lhutton1 @tqchen
happy to go with what @multiverstack-intellif you think is convenient |
@leandron I'm asking just in case you may know. The change is merged, but I only found image |
Hi @multiverstack-intellif, you should be able to post a PR with the tlcpackstaging image tag but under the tlcpack account, see https://tvm.apache.org/docs/contribute/ci.html#updating-a-docker-image-tag |
Update docker image tag as a follow up step for #14303.
Add llvm-15 and mlir-15 for CPU docker image for RFC: Introduce PresburgerSet
libstdc++ needs to be updated for ubuntu-18.04 if install llvm-15 through the official apt, which could be risky. So here build it from source as a temporary solution before overall upgrade to ubuntu-22.04.
cc @leandron @lhutton1 @tqchen