mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[cpu] Modify inductor opt flag --- ftree-loop-vectorize (#136827)"
This reverts commit cf0bb6c435c58db4c72e489f462e1a0ebe310f14. Reverted https://github.com/pytorch/pytorch/pull/136827 on behalf of https://github.com/ZainRizvi due to Sorry but this breaks internally. See D65605094 for more details ([comment](https://github.com/pytorch/pytorch/pull/136827#issuecomment-2465805271))
This commit is contained in:
@ -545,8 +545,6 @@ def _get_optimization_cflags() -> List[str]:
|
||||
cflags.append("ffp-contract=off")
|
||||
|
||||
if sys.platform != "darwin":
|
||||
# on macos, unknown argument: '-fno-tree-loop-vectorize'
|
||||
cflags.append("fno-tree-loop-vectorize")
|
||||
# https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1
|
||||
# `-march=native` is unrecognized option on M1
|
||||
if not config.is_fbcode():
|
||||
|
Reference in New Issue
Block a user