pytorch/cmake
Nikita Shulga 30cecc0e11 [MPS] Fix build regressions introduced by #92868 (#101036)
https://github.com/pytorch/pytorch/pull/92868 introduced  `OBJC` and `OBJCXX` language dialects, but fails to propagate some important flags, like OpenMP include path(if found),  `-fno-objc-arc` and `-Wno-unguarded-availability-new` suppression.

This PR remedies that and fixes https://github.com/pytorch/pytorch/issues/100925

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 62677d4</samp>

This pull request improves the support for MPSGraph on Apple platforms by fixing some CMake flags for parallelism and memory management. It modifies `cmake/Dependencies.cmake` and `CMakeLists.txt` accordingly.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/101036
Approved by: https://github.com/atalman, https://github.com/huydhn
2023-05-10 04:15:41 +00:00
..
External
Modules lower cmake version requirement in FindSanitizer.cmake (#97073) 2023-04-22 02:02:14 +00:00
Modules_CUDA_fix [BE] Remove fast_nvcc tool (#96665) 2023-03-14 03:17:31 +00:00
public enable some cuda warnings (#95568) 2023-04-28 02:39:17 +00:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in remove unused CAFFE2_VERSION macros (#97337) 2023-03-24 16:02:35 +00:00
CheckAbi.cmake
cmake_uninstall.cmake.in
Codegen.cmake add explicit vectorization for Half dtype on CPU (#96076) 2023-04-03 10:58:37 +00:00
DebugHelper.cmake
Dependencies.cmake [MPS] Fix build regressions introduced by #92868 (#101036) 2023-05-10 04:15:41 +00:00
FlatBuffers.cmake
GoogleTestPatch.cmake
IncludeSource.cpp.in
iOS.cmake
Metal.cmake [CI] Compile on M1 natively (#95719) 2023-03-01 04:20:42 +00:00
MiscCheck.cmake [BE] Cleanup CMake flag suppressions (#97584) 2023-03-27 18:46:09 +00:00
ProtoBuf.cmake [BE] Cleanup CMake flag suppressions (#97584) 2023-03-27 18:46:09 +00:00
ProtoBufPatch.cmake
Summary.cmake remove unused CAFFE2_VERSION macros (#97337) 2023-03-24 16:02:35 +00:00
TorchConfig.cmake.in Revert "Upgrade NVTX to NVTX3 (#90689)" 2023-03-24 18:16:06 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake
VulkanDependencies.cmake