Skip to content
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

[BE] Cleanup CMake flag suppressions #97584

Closed
wants to merge 7 commits into from
Closed

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Mar 25, 2023

Use append_cxx_flag_if_supported to determine whether or not -Werror is supported
Do not suppress deprecation warnings if glog is not used/installed, as the way check is written right now, it will suppress deprecations even if glog is not installed.
Similarly, do not suppress deprecations on MacOS simply because we are compiling with protobuf.
Fix deprecation warnings in:

  • MPS by replacing MTLResourceOptionCPUCacheModeDefault->MTLResourceCPUCacheModeDefaultCache
  • In GTests by replacing TYPED_TEST_CASE->TYPED_TEST_SUITE
  • In codegen/onednn/interface.cpp, by using passing Stack by reference rathern than pointer.

Do not guard calls to append_cxx_flag_if_supported with if(CLANG) or if(GCC).
Fix some deprecated calls in Metal hide more complex exception under C10_CLANG_DIAGNOSTIC_IGNORE

cc @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @jgong5 @mingfeima @sanchitintel @ashokei @jingxu10 @min-jean-cho @yanbing-j @Guobing-Chen @Xia-Weiwen

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 25, 2023

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 5a4cfe5:

NEW FAILURES - The following jobs have failed:

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

@malfet malfet requested a review from a team March 25, 2023 02:37
@malfet malfet added the topic: not user facing topic category label Mar 25, 2023
cmake/MiscCheck.cmake Outdated Show resolved Hide resolved
@malfet malfet requested a review from kulinseth as a code owner March 26, 2023 16:25
Use `append_cxx_flag_if_supported` to determine whether or not `-Werror`
is supported
Do not suppress deprecation warnings if glog is not used/installed.

Do not guard calls to `append_cxx_flag_if_supported` with `if(CLANG)` or
`if(GCC)`
@github-actions github-actions bot added the module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration label Mar 26, 2023
@pytorch-bot pytorch-bot bot added the ciflow/mps Run MPS tests (subset of trunk) label Mar 26, 2023
@malfet malfet added ciflow/trunk Trigger trunk jobs on your pull request release notes: build release notes category topic: bug fixes topic category labels Mar 27, 2023
@malfet
Copy link
Contributor Author

malfet commented Mar 27, 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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / linux-bionic-cuda11.8-py3.10-gcc7 / test (default, 3, 5, linux.4xlarge.nvidia.gpu)

Details for Dev Infra team Raised by workflow job

@malfet
Copy link
Contributor Author

malfet commented Mar 27, 2023

@pytorchbot merge -f "Builds are green and test_torch was fixed by #97628"

@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).

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/be-cleanup-cmake branch March 30, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request Merged module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration release notes: build release notes category topic: bug fixes topic category topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants