-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Fix get_free_symbol_uses for several nodes #160314
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/160314
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 6e19a3b with merge base ecea811 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
torch/_inductor/ir.py
Outdated
def get_free_symbol_uses( | ||
self, unbacked_only: bool = False | ||
) -> OrderedSet[sympy.Symbol]: | ||
return NopKernel.get_free_symbol_uses(self, unbacked_only) |
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.
Indented incorrectly ? Also This is dead code, (should already be defined through inheritance)
benchmarks/dynamo/pr_time_benchmarks/benchmarks/basic_modules_benchmarks.py
Outdated
Show resolved
Hide resolved
|
||
|
||
|
||
basic_NestedModule_eager,compile_time_instruction_count,9199000000,0.1 | ||
basic_NestedModule_eager,compile_time_instruction_count,9554000000,0.1 |
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.
exisiting not from my PR.
Fix the perf regression |
@pytorchbot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
@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 |
@pytorchbot merge |
Can't merge closed PR #160314 |
regression introduced by #160314 not much worried about it since it did not effect other inductor benchmarks could not repo locally Pull Request resolved: #160537 Approved by: https://github.com/eellison
get_free_symbol_uses is used to know what unbacked symbols are used by a given node. not having correct get_free_symbol_uses defined properly leads to : - eliminating of some nodes due to not detection of any users. (See the added unit test) - Incorrect topological sort. Fix get_free_symbol_uses , NopKernel , ConcarKernel, InputsKerenl, external kernel. for ComputedBuffer with NonOwningLayout its interesting case. when layout is NonOwningLayout we need to access the actual view op base layout and use detect symbols in it. Because when we codegen the ComputedBuffer we uses those symbols. Pull Request resolved: #160314 Approved by: https://github.com/eellison
regression introduced by #160314 not much worried about it since it did not effect other inductor benchmarks could not repo locally Pull Request resolved: #160537 Approved by: https://github.com/eellison
get_free_symbol_uses is used to know what unbacked symbols are used by a given node. not having correct get_free_symbol_uses defined properly leads to : - eliminating of some nodes due to not detection of any users. (See the added unit test) - Incorrect topological sort. Fix get_free_symbol_uses , NopKernel , ConcarKernel, InputsKerenl, external kernel. for ComputedBuffer with NonOwningLayout its interesting case. when layout is NonOwningLayout we need to access the actual view op base layout and use detect symbols in it. Because when we codegen the ComputedBuffer we uses those symbols. Pull Request resolved: #160314 Approved by: https://github.com/eellison
regression introduced by #160314 not much worried about it since it did not effect other inductor benchmarks could not repo locally Pull Request resolved: #160537 Approved by: https://github.com/eellison
get_free_symbol_uses is used to know what unbacked symbols are used by a given node. not having correct get_free_symbol_uses defined properly leads to : - eliminating of some nodes due to not detection of any users. (See the added unit test) - Incorrect topological sort. Fix get_free_symbol_uses , NopKernel , ConcarKernel, InputsKerenl, external kernel. for ComputedBuffer with NonOwningLayout its interesting case. when layout is NonOwningLayout we need to access the actual view op base layout and use detect symbols in it. Because when we codegen the ComputedBuffer we uses those symbols. Pull Request resolved: pytorch#160314 Approved by: https://github.com/eellison
regression introduced by pytorch#160314 not much worried about it since it did not effect other inductor benchmarks could not repo locally Pull Request resolved: pytorch#160537 Approved by: https://github.com/eellison
Stack from ghstack (oldest at bottom):
get_free_symbol_uses is used to know what unbacked symbols are used by a given node.
not having correct get_free_symbol_uses defined properly leads to :
Fix get_free_symbol_uses , NopKernel , ConcarKernel, InputsKerenl, external kernel.
for ComputedBuffer with NonOwningLayout its interesting case.
when layout is NonOwningLayout we need to access the actual view op base layout and use
detect symbols in it. Because when we codegen the ComputedBuffer we uses those symbols.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @Lucaskabela