mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
fix xnnpack build on mac (#158881)
Summary: Fix a bug for not getting the correct sources Test Plan: CI on my mac: ``` buck2 build @//fbobjc/mode/profile --show-full-output //xplat/executorch/examples/portable/executor_runner:executor_runner_opt File changed: fbsource//xplat/caffe2/third_party/xnnpack.buck.bzl Buck UI: https://www.internalfb.com/buck2/67b59179-4de8-462a-9202-0b9c34a35aef Network: Up: 2.4MiB Down: 1.3KiB (reSessionID-f687a7cd-5961-4851-bc67-b07043baa52a) Loading targets. Remaining 0/1 504 targets declared Analyzing targets. Remaining 0/42 1960 actions, 2424 artifacts declared Executing actions. Remaining 0/975 37.2s exec time total Command: build. Finished 40 local Time elapsed: 7.7s BUILD SUCCEEDED fbsource//xplat/executorch/examples/portable/executor_runner:executor_runner_opt /Users/maxren/fbsource/buck-out/v2/gen/fbsource/267ffdee31edf15e/xplat/executorch/examples/portable/executor_runner/__executor_runner_opt__/executor_runner_opt ``` Rollback Plan: Reviewed By: swolchok Differential Revision: D78771697 Pull Request resolved: https://github.com/pytorch/pytorch/pull/158881 Approved by: https://github.com/digantdesai
This commit is contained in:
committed by
PyTorch MergeBot
parent
82f8e04f27
commit
86df3ff1f1
2
third_party/xnnpack.buck.bzl
vendored
2
third_party/xnnpack.buck.bzl
vendored
@ -1437,7 +1437,7 @@ def define_xnnpack(third_party, labels = [], XNNPACK_WINDOWS_AVX512F_ENABLED = F
|
||||
labels = labels,
|
||||
platform_srcs = [
|
||||
(
|
||||
"(arm64|aarch64)$",
|
||||
"(arm64|aarch64)",
|
||||
prod_srcs_for_arch_wrapper("neonfma") + prod_srcs_for_arch_wrapper("neonfma_aarch64"),
|
||||
),
|
||||
] if not is_arvr_mode() else [],
|
||||
|
Reference in New Issue
Block a user