-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Update CMake minimum version to 3.10 #63660
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
Conversation
[ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit d903bea (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
LGTM, @ezyang any objections on your end? |
|
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
IIRC the main question is if the most recent LTS Ubuntu ships with cmake 3.10... does it? |
|
The most recent LTS is 20.04, and this command shows CMake docker run -it ubuntu:20.04 sh -c "apt-get update -y && apt-get install cmake -y && cmake --version"Running the same command with 18.04 installs CMake |
|
Then we're good to go! :) |
Differential Revision: [](https://our.internmc.facebook.com/intern/diff/) [ghstack-poisoned]
|
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
Is this change comprehensive to include all the cmake in the codebase? e.g. one I can find is here https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/cpu/tbb/CMakeLists.txt#L4 |
|
This pull request has been merged in 5ab356f. |
|
@peterbell10 on #63918 I am getting new cmake minimum version errors on the edit: before reverting I'll try rebasing my PR in the hopes that will fix something |
The docker image is picked based on a hash of the folder in your branch, so it chooses the old docker image. Then master is merged into your PR which expects the CMake from the newer docker image. IIRC there's only a few CI jobs that merge with master like that though. |
Summary: Due to pytorch/pytorch#63660, seeing issues like the following on CI. Trying to update to latest stable cmake 3.21 to unbreak. ``` + python setup.py install Building wheel torch-1.10.0a0+git5b548f6 CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.10 or higher is required. You are running version 3.5.1 ``` Pull Request resolved: #5798 Reviewed By: mortzur Differential Revision: D30560148 Pulled By: jfix71 fbshipit-source-id: d3a329e9d1e8fcdd115885f62a6d7a5b9cc07204
Stack from ghstack:
Differential Revision:
Differential Revision: D30543878
cc @malfet @seemethere @walterddr