KEMBAR78
Update CMake minimum version to 3.10 by peterbell10 · Pull Request #63660 · pytorch/pytorch · GitHub
Skip to content

Conversation

@peterbell10
Copy link
Collaborator

@peterbell10 peterbell10 commented Aug 20, 2021

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 20, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit d903bea (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build docker-pytorch-linux-xenial-cuda11.3-cudnn8-py3-gcc7 (1/1)

Step: "build_docker_image_pytorch-linux-xenial-cuda11.3-cudnn8-py3-gcc7" (full log | diagnosis details | 🔁 rerun)

executor failed running [/bin/sh -c if [ -n "${...hen bash ./install_protobuf.sh; fi]: exit code: 28
#19 5.909 + curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz
#19 5.915   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#19 5.915                                  Dload  Upload   Total   Spent    Left  Speed
#19 5.915 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   632  100   632    0     0   1912      0 --:--:-- --:--:-- --:--:--  1915
#19 7.451 
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:12 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:13 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:14 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:15 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:16 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:17 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:18 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:19 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:20 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:21 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:22 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:23 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:24 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:25 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:26 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:27 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:28 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:29 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:30 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:31 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:32 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:33 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:34 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:35 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:36 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:37 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:38 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:39 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:40 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:41 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:42 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:43 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:44 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:45 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:46 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:47 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:48 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:49 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:50 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:51 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:52 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:53 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:54 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:55 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:56 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:57 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:58 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:59 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:01:00 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:01:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:01:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:01:03 --:--:--     0
  0     0   
#19 306.8 curl: (28) Operation timed out after 0 milliseconds with 0 out of 0 bytes received
#19 ERROR: executor failed running [/bin/sh -c if [ -n "${PROTOBUF}" ]; then bash ./install_protobuf.sh; fi]: exit code: 28
------
 > [stage-0 15/36] RUN if [ -n "yes" ]; then bash ./install_protobuf.sh; fi:
------
executor failed running [/bin/sh -c if [ -n "${PROTOBUF}" ]; then bash ./install_protobuf.sh; fi]: exit code: 28
+ docker logout 308535385114.dkr.ecr.us-east-1.amazonaws.com
Removing login credentials for 308535385114.dkr.ecr.us-east-1.amazonaws.com


Exited with code exit status 1


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@peterbell10 peterbell10 requested a review from malfet August 21, 2021 14:57
@malfet
Copy link
Contributor

malfet commented Aug 23, 2021

LGTM, @ezyang any objections on your end?

@malfet
Copy link
Contributor

malfet commented Aug 23, 2021

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ezyang
Copy link
Contributor

ezyang commented Aug 24, 2021

IIRC the main question is if the most recent LTS Ubuntu ships with cmake 3.10... does it?

@peterbell10
Copy link
Collaborator Author

peterbell10 commented Aug 24, 2021

The most recent LTS is 20.04, and this command shows CMake 3.16.3 is on apt.

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 3.10.2 so we even support the previous LTS release.

@ezyang
Copy link
Contributor

ezyang commented Aug 24, 2021

Then we're good to go! :)

@malfet
Copy link
Contributor

malfet commented Aug 25, 2021

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@zhouzhuojie
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 5ab356f.

@suo
Copy link
Member

suo commented Aug 25, 2021

@peterbell10 on #63918 I am getting new cmake minimum version errors on the pytorch_linux_xenial_py3_6_gcc5_4 docker image (affected job). I am planning to revert this change while we figure it out, is there anything special about this change that would make a revert messy?

edit: before reverting I'll try rebasing my PR in the hopes that will fix something
edit2: looks like rebasing fixed my issue https://app.circleci.com/pipelines/github/pytorch/pytorch/370528/workflows/b15949bd-6914-4942-9ff4-8b3bc0cc8c4d/jobs/15630396 and the hud looks clean, so I guess we're good here

@peterbell10
Copy link
Collaborator Author

peterbell10 commented Aug 25, 2021

@peterbell10 on #63918 I am getting new cmake minimum version errors on the pytorch_linux_xenial_py3_6_gcc5_4 docker image (affected job).

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.

facebook-github-bot pushed a commit to pytorch/glow that referenced this pull request Aug 26, 2021
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
@facebook-github-bot facebook-github-bot deleted the gh/peterbell10/121/head branch August 29, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants