-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Wrap torch_python with torch_compile_options #136743
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🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136743
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1ed5552 with merge base d558c1a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
9378539 to
13c358b
Compare
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
13c358b to
14595cf
Compare
14595cf to
22edeeb
Compare
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
|
Successfully rebased |
22edeeb to
97043ec
Compare
ca30607 to
011c52e
Compare
7418fdb to
1ed5552
Compare
| torch_compile_options(torch_python) # see cmake/public/utils.cmake | ||
| if(NOT WIN32) | ||
| target_compile_options(torch_python PRIVATE | ||
| $<$<COMPILE_LANGUAGE:CXX>: -fvisibility=default>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on here? Private visibility on torch_python seems doable no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not feasible, because almost all types in torch_python were previously exported. It takes lots of efforts to identify and mark exported types with TORCH_PYTHON_API while still having the risk for the missing ones to break extensions. The safest way is to keep the old behavior and change gradually. In theory, it's doable, but in practice, we have to disable it for now.
|
@pytorchbot merge |
Merge startedYour 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 |
Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#136743 Approved by: https://github.com/ezyang
Fixes #ISSUE_NUMBER