-
Notifications
You must be signed in to change notification settings - Fork 25.6k
move XNNPACK buck build to shared build file #77941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful links
❌ 1 New FailuresAs of commit 31aac6f (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
This pull request was exported from Phabricator. Differential Revision: D36529332 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D36529332 |
8ce7176
to
a74ffa4
Compare
a74ffa4
to
69be97c
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D36529332 |
69be97c
to
93652e9
Compare
93652e9
to
d90b630
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D36529332 |
d90b630
to
ba11db3
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
ba11db3
to
ccb873b
Compare
ccb873b
to
3fbeca9
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
8839f42
to
8db4e79
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
8db4e79
to
254cde6
Compare
254cde6
to
49f913a
Compare
This pull request was exported from Phabricator. Differential Revision: D36529332 |
49f913a
to
1e40065
Compare
…rch#77941) Summary: Pull Request resolved: pytorch#77941 This diff moved the XNNPACK buck build to a shared build file in xplat/caffe2/third_party, so it can be reused by OSS buck CI in the future. There's no functionality change. **Why**: We want to expose more internal build signals to OSS. XNNPACK is part of pytorch mobile build so it needs to be included in OSS BUCK CI. By moving these BUCK targets to a file under caffe2 folder, we can use it in OSS BUCK build (see pytorch#76480). **How it works**: all XNNPACK targets are defined in xplat/caffe2/third_party/xnnpack_defs.bzl. When we build it internally, the XNNPACK source is still at xplat/third-party/XNNPACK and we will load that bzl file in xplat/third-party/XNNPACK/BUCK. Everything should work as before. In OSS build, XNNPACK is a submodule in xplat/caffe2/third_party and we will load the same bzl file in pytorch/third_party/BUILD.buck. **Wrapper Generation**: the wrapper generation script is moved to xplat/caffe2/third_party/generate-xnnpack-wrappers.py. It will take an optional argument for the path of XNNPACK (they are different in internal build and OSS build). The wrapper files will always be generated at the parent folder of XNNPACK source. But the src_defs.bzl and wrapper_defs.bzl will always be in xplat/caffe2/third_party/ (they are now called xnnpack_src_defs.bzl and xnnpack_wrapper_defs.bzl). For OSS build this script will only be used in CI, and the generated files will not be committed. **Next Steps:** Once landed, I will try to build XNNPACK in OSS BUCK using xnnpack_defs.bzl. Meta-specific symbols need to be resolved, so there will be some refactors to the build file. Test Plan: - buck build xplat/third-party/XNNPACK:XNNPACK - Tested wrapper generation script for internal build Reviewed By: kimishpatel, malfet, seemethere Differential Revision: D36529332 fbshipit-source-id: dfcc723d55ab335a77f5c914513daba60388ad44
This pull request was exported from Phabricator. Differential Revision: D36529332 |
1e40065
to
31aac6f
Compare
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Hey @linbinyu. |
Summary: Pull Request resolved: #77941 This diff moved the XNNPACK buck build to a shared build file in xplat/caffe2/third_party, so it can be reused by OSS buck CI in the future. There's no functionality change. **Why**: We want to expose more internal build signals to OSS. XNNPACK is part of pytorch mobile build so it needs to be included in OSS BUCK CI. By moving these BUCK targets to a file under caffe2 folder, we can use it in OSS BUCK build (see #76480). **How it works**: all XNNPACK targets are defined in xplat/caffe2/third_party/xnnpack_defs.bzl. When we build it internally, the XNNPACK source is still at xplat/third-party/XNNPACK and we will load that bzl file in xplat/third-party/XNNPACK/BUCK. Everything should work as before. In OSS build, XNNPACK is a submodule in xplat/caffe2/third_party and we will load the same bzl file in pytorch/third_party/BUILD.buck. **Wrapper Generation**: the wrapper generation script is moved to xplat/caffe2/third_party/generate-xnnpack-wrappers.py. It will take an optional argument for the path of XNNPACK (they are different in internal build and OSS build). The wrapper files will always be generated at the parent folder of XNNPACK source. But the src_defs.bzl and wrapper_defs.bzl will always be in xplat/caffe2/third_party/ (they are now called xnnpack_src_defs.bzl and xnnpack_wrapper_defs.bzl). For OSS build this script will only be used in CI, and the generated files will not be committed. **Next Steps:** Once landed, I will try to build XNNPACK in OSS BUCK using xnnpack_defs.bzl. Meta-specific symbols need to be resolved, so there will be some refactors to the build file. Test Plan: - buck build xplat/third-party/XNNPACK:XNNPACK - Tested wrapper generation script for internal build Reviewed By: kimishpatel, malfet, seemethere Differential Revision: D36529332 fbshipit-source-id: bfe77bd753336f788e11754fddd3886b0e308650
@pytorchbot revert -m "broke buck builds on master, see https://hud.pytorch.org/pytorch/pytorch/commit/b8b46f932b41b5b5969d49fbe5ea8d2d5b45a1e3" -c nosignal |
Reverting PR 77941 failed due to This PR has internal changes and must be landed via Phabricator |
@pytorchbot revert -m="Diff Reverted" -c="ghfirst" This Pull Request has been reverted by a revert inside Meta. To re-land this change, please open another pull request, assign the same reviewers, fix the CI failures that caused the revert and make sure that the failing CI runs on the PR by applying the proper ciflow label (e.g., ciflow/trunk).) |
Revert unsuccessful: please retry the command and provide a revert reason, e.g. |
@pytorchbot revert -m="Diff reverted due to breaking buck internal builds" -c="ghfirst" |
Reverting PR 77941 failed due to This PR has internal changes and must be landed via Phabricator |
This change were reverted 2 days ago, but revert have not made it to |
This reverts commit b8b46f9. This change were reverted internally but has not been populated to neither `master` nor `fbsync` branches yet
Manually reverted as 472d67a |
Summary:
This diff moved the XNNPACK buck build to a shared build file in xplat/caffe2/third_party, so it can be reused by OSS buck CI in the future. There's no functionality change.
Background: as we are moving to github-first, we want community to receive more signals from our internal build. XNNPACK is part of pytorch mobile build so we want to add it to OSS BUCK CI.
How it works: all XNNPACK targets are defined in xplat/caffe2/third_party/xnnpack_defs.bzl. When we build it internally, the XNNPACK source is still at xplat/third-party/XNNPACK and we will load that bzl file in xplat/third-party/XNNPACK/BUCK. Everything should work as before. In OSS build, XNNPACK is a submodule in xplat/caffe2/third_party and we will load the same bzl file in pytorch/third_party/BUILD.buck.
Wrapper Generation: the wrapper generation script is moved to xplat/caffe2/third_party/generate-xnnpack-wrappers.py. It will take an optional argument for the path of XNNPACK (they are different in internal build and OSS build). The wrapper files will always be generated at the parent folder of XNNPACK source. But the src_defs.bzl and wrapper_defs.bzl will always be in xplat/caffe2/third_party/ (they are now called xnnpack_src_defs.bzl and xnnpack_wrapper_defs.bzl). For OSS build this script will only be used in CI, and the generated files will not be committed.
Next Steps: Once landed, I will try to build XNNPACK in OSS BUCK using xnnpack_defs.bzl. Meta-specific symbols need to be resolved, so there will be some refactors to the build file.
Test Plan: buck build xplat/third-party/XNNPACK:XNNPACK
Differential Revision: D36529332