KEMBAR78
[Cmake] Check that gcc-9.4 or newer is used by malfet · Pull Request #112858 · pytorch/pytorch · GitHub
Skip to content

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Nov 3, 2023

As this is the oldest gcc that is fully compatible with C++17 standard.

  • Replace number of conditional version with simpler if(CMAKE_COMPILER_IS_GNUCXX) or append_cxx_flag_if_supported.
  • As -Wsuggest-override condition was hidden before incorrect guard, add missing override keywords to torch::autograd::PyFunctionTensorPostAccGradHooks::apply_with_saved , caffe2::python::TensorFeeder::Feed and `cafee2::NetObserverReporterPrint::report```

Fixes #101839

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 3, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112858

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit fa97acc with merge base 3e2c941 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@malfet malfet requested review from a team, Skylion007 and albanD November 3, 2023 15:33
@malfet malfet added release notes: build release notes category topic: bc breaking topic category labels Nov 3, 2023
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

SGTM!

As this is the first one that is fully compatible with C++17 standard

Fixes #101839
@malfet malfet force-pushed the malfet/bump-min-gcc-to-9 branch from d89acf3 to 8987c99 Compare November 3, 2023 23:03
@malfet
Copy link
Contributor Author

malfet commented Nov 3, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 3, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 2 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@malfet malfet requested a review from soulitzer as a code owner November 4, 2023 01:12
@malfet
Copy link
Contributor Author

malfet commented Nov 4, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@malfet malfet deleted the malfet/bump-min-gcc-to-9 branch November 4, 2023 14:29
@PaliC
Copy link
Contributor

PaliC commented Nov 6, 2023

@pytorchbot revert -m "breaking internal tests (check diff for test page)" -c "ghfirst"

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@malfet your PR has been successfully reverted.

@pytorchmergebot
Copy link
Collaborator

Reverting PR 112858 failed

Reason: HTTP Error 422: Unprocessable Entity

Details for Dev Infra team Raised by workflow job

pytorchmergebot added a commit that referenced this pull request Nov 6, 2023
This reverts commit ad894cd.

Reverted #112858 on behalf of https://github.com/PaliC due to breaking internal tests (check diff for test page) ([comment](#112858 (comment)))
@malfet malfet restored the malfet/bump-min-gcc-to-9 branch November 6, 2023 17:04
@malfet malfet reopened this Nov 6, 2023
@malfet
Copy link
Contributor Author

malfet commented Nov 6, 2023

@pytorchbot merge -f "It passes the abovementioned test"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
As this is the oldest gcc that is fully compatible with C++17 standard.
- Replace number of conditional version with simpler `if(CMAKE_COMPILER_IS_GNUCXX)` or `append_cxx_flag_if_supported`.
- As `-Wsuggest-override` condition was hidden before incorrect guard, add missing `override` keywords to `torch::autograd::PyFunctionTensorPostAccGradHooks::apply_with_saved` , `caffe2::python::TensorFeeder::Feed` and `cafee2::NetObserverReporterPrint::report```

Fixes pytorch#101839

Pull Request resolved: pytorch#112858
Approved by: https://github.com/Skylion007, https://github.com/albanD
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
This reverts commit ad894cd.

Reverted pytorch#112858 on behalf of https://github.com/PaliC due to breaking internal tests (check diff for test page) ([comment](pytorch#112858 (comment)))
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
As this is the oldest gcc that is fully compatible with C++17 standard.
- Replace number of conditional version with simpler `if(CMAKE_COMPILER_IS_GNUCXX)` or `append_cxx_flag_if_supported`.
- As `-Wsuggest-override` condition was hidden before incorrect guard, add missing `override` keywords to `torch::autograd::PyFunctionTensorPostAccGradHooks::apply_with_saved` , `caffe2::python::TensorFeeder::Feed` and `cafee2::NetObserverReporterPrint::report```

Fixes pytorch#101839

Pull Request resolved: pytorch#112858
Approved by: https://github.com/Skylion007, https://github.com/albanD
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
As this is the oldest gcc that is fully compatible with C++17 standard.
- Replace number of conditional version with simpler `if(CMAKE_COMPILER_IS_GNUCXX)` or `append_cxx_flag_if_supported`.
- As `-Wsuggest-override` condition was hidden before incorrect guard, add missing `override` keywords to `torch::autograd::PyFunctionTensorPostAccGradHooks::apply_with_saved` , `caffe2::python::TensorFeeder::Feed` and `cafee2::NetObserverReporterPrint::report```

Fixes pytorch#101839

Pull Request resolved: pytorch#112858
Approved by: https://github.com/Skylion007, https://github.com/albanD
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
This reverts commit ad894cd.

Reverted pytorch#112858 on behalf of https://github.com/PaliC due to breaking internal tests (check diff for test page) ([comment](pytorch#112858 (comment)))
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
As this is the oldest gcc that is fully compatible with C++17 standard.
- Replace number of conditional version with simpler `if(CMAKE_COMPILER_IS_GNUCXX)` or `append_cxx_flag_if_supported`.
- As `-Wsuggest-override` condition was hidden before incorrect guard, add missing `override` keywords to `torch::autograd::PyFunctionTensorPostAccGradHooks::apply_with_saved` , `caffe2::python::TensorFeeder::Feed` and `cafee2::NetObserverReporterPrint::report```

Fixes pytorch#101839

Pull Request resolved: pytorch#112858
Approved by: https://github.com/Skylion007, https://github.com/albanD
@malfet malfet deleted the malfet/bump-min-gcc-to-9 branch December 18, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: build release notes category Reverted topic: bc breaking topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update minimum supported gcc to gcc-9

5 participants