Revert "Fix Arm64 OSS pytorch build with FBGEMM (#161527)"

This reverts commit dbec08729fb9848bebed6048c63831b87170d061.

Reverted https://github.com/pytorch/pytorch/pull/161527 on behalf of https://github.com/malfet due to This breaks all Mac builds, see b04e922712/1 ([comment](https://github.com/pytorch/pytorch/pull/161527#issuecomment-3256034443))
This commit is contained in:
PyTorch MergeBot
2025-09-04 22:29:38 +00:00
parent b04e922712
commit 1ec2c15914

View File

@ -837,11 +837,9 @@ include(ExternalProject)
# ---[ Dependencies ---[ FBGEMM doesn't work on x86 32bit and
# CMAKE_SYSTEM_PROCESSOR thinks its 64bit
if(USE_FBGEMM AND
(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") AND
(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"))
if(USE_FBGEMM AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
message(WARNING
"x64 or Arm64 operating systems are required for FBGEMM. "
"x64 operating system is required for FBGEMM. "
"Not compiling with FBGEMM. "
"Turn this warning off by USE_FBGEMM=OFF.")
set(USE_FBGEMM OFF)