Skip to content

[BE] Do not package caffe2 in wheel#87986

Closed
malfet wants to merge 3 commits intomasterfrom
malfet/do-not-package-caffe2
Closed

[BE] Do not package caffe2 in wheel#87986
malfet wants to merge 3 commits intomasterfrom
malfet/do-not-package-caffe2

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Oct 28, 2022

If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with functorch (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Oct 28, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87986

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d7ce594:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Oct 28, 2022
@malfet malfet requested a review from a team October 28, 2022 14:43
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 28, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Followup after pytorch/builder#1181
@malfet malfet force-pushed the malfet/do-not-package-caffe2 branch from a41e9be to d763e08 Compare October 29, 2022 04:42
`cmake_cache_vars` does not exist everywhere, create global function to
take care of it
@malfet malfet force-pushed the malfet/do-not-package-caffe2 branch from d763e08 to 4e8ae96 Compare October 29, 2022 04:46
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Oct 29, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge failed

Reason: The following mandatory check(s) failed (Rule superuser):

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Why don't we do wheels, like on other platforms
@malfet malfet changed the title [BE] Do not package caffe2 package [BE] Do not package caffe2 in wheel Oct 30, 2022
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Oct 30, 2022

@pytorchbot merge -f "This is a build only change"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

ashay added a commit to llvm/torch-mlir that referenced this pull request Nov 4, 2022
Unless requested otherwise, PyTorch no longer installs most of the
header files under the caffe2 directory (see
pytorch/pytorch#87986).  This breaks our
importer code since we need to use the `MakeGuard()` function to execute
statements in the event of exceptions.

To fix this issue, this patch implements a rudimentary version of
PyTorch's ScopeGuard, where once the class variable goes out of scope,
it executes a predefined method.
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with `functorch` (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

Pull Request resolved: pytorch#87986
Approved by: https://github.com/seemethere
@malfet malfet added this to the 1.13.1 milestone Dec 8, 2022
atalman pushed a commit to atalman/pytorch that referenced this pull request Dec 8, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with `functorch` (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

Pull Request resolved: pytorch#87986
Approved by: https://github.com/seemethere
atalman pushed a commit to atalman/pytorch that referenced this pull request Dec 8, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with `functorch` (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

Pull Request resolved: pytorch#87986
Approved by: https://github.com/seemethere
atalman added a commit that referenced this pull request Dec 8, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with `functorch` (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

Pull Request resolved: #87986
Approved by: https://github.com/seemethere

Co-authored-by: Nikita Shulga <nshulga@meta.com>
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
If PyTorch is build without caffe2 integration, do not package unusable
.py files/headers

Same is true about functorch - don't package it unless building with `functorch` (although, I wonder if we should remove this option at some point in the future)

Followup after pytorch/builder#1181

Pull Request resolved: pytorch#87986
Approved by: https://github.com/seemethere
@github-actions github-actions bot deleted the malfet/do-not-package-caffe2 branch April 30, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants