pytorch/c10
Nikita Shulga 96e3b3ac72 [BE] Cleanup CMake flag suppressions (#97584)
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`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97584
Approved by: https://github.com/kit1980
2023-03-27 18:46:09 +00:00
..
benchmark
core [Typo] mulithreading_enabled => multithreading_enabled (#97054) 2023-03-21 20:11:59 +00:00
cuda Move hasPrimaryContext to c10::cuda (#96800) 2023-03-17 04:50:35 +00:00
hip
macros More fixes and improved clang-tidy checkers (#93213) 2023-02-01 14:44:17 +00:00
mobile
test [BE] Cleanup CMake flag suppressions (#97584) 2023-03-27 18:46:09 +00:00
util backport std::ssize to c10 (#97442) 2023-03-24 17:56:05 +00:00
BUCK.oss
BUILD.bazel [pytorch] [hygiene] remove legacy buck rules (#94053) 2023-02-09 15:45:29 +00:00
build.bzl [pytorch] [hygiene] remove legacy buck rules (#94053) 2023-02-09 15:45:29 +00:00
CMakeLists.txt
ovrsource_defs.bzl