Skip to content
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

Handle int/float arguments for cpp codegen in inductor #95533

Closed
wants to merge 6 commits into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Feb 25, 2023

Stack from ghstack (oldest at bottom):

This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang ezyang@meta.com

cc @soumith @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @desertfire

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 25, 2023

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 0d61afb:

NEW FAILURES - The following jobs have failed:

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

ezyang added a commit that referenced this pull request Feb 25, 2023
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: f665d9b8370c2aaccd59df01d16276d8eeb09093
Pull Request resolved: #95533
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Feb 25, 2023
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: 6e1bd94fa815772c6af3e65347278643e700a923
Pull Request resolved: #95533
@ezyang ezyang requested review from ngimel and jansel February 25, 2023 02:19
@ezyang
Copy link
Contributor Author

ezyang commented Feb 27, 2023

@Chillee I'm stealing some changes from #93059 into this PR

This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Feb 27, 2023
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: 4b69e5c60b98b2b3dbebd863c619e29bf6d0e161
Pull Request resolved: #95533
@ezyang ezyang added the topic: bug fixes topic category label Feb 27, 2023
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

cc soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
@ezyang
Copy link
Contributor Author

ezyang commented Feb 28, 2023

@pytorchbot merge -f "distributed timeout"

@pytorchmergebot
Copy link
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

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 2, 2023
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch/pytorch#95533
Approved by: https://github.com/ngimel, https://github.com/jansel
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch/pytorch#95533
Approved by: https://github.com/ngimel, https://github.com/jansel
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch/pytorch#95533
Approved by: https://github.com/ngimel, https://github.com/jansel
@ezyang ezyang added this to the 2.0.1 milestone Mar 20, 2023
@ezyang ezyang removed this from the 2.0.1 milestone Apr 21, 2023
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
chunyuan-w added a commit that referenced this pull request May 12, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and extract the logic into a utility function.


cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
chunyuan-w added a commit that referenced this pull request May 14, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and support it as graph input in the cpp wrapper.


cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
chunyuan-w added a commit that referenced this pull request May 15, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and support it as graph input in the cpp wrapper.


cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
chunyuan-w added a commit that referenced this pull request May 15, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and support it as graph input in the cpp wrapper.


cc soumith voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request May 15, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and support it as graph input in the cpp wrapper.

Pull Request resolved: #101257
Approved by: https://github.com/jgong5, https://github.com/Skylion007, https://github.com/EikanWang, https://github.com/jansel
jcaip pushed a commit that referenced this pull request May 23, 2023
Leverage the logic in #95533 to get the `dtype` of `sympy.Expr` and support it as graph input in the cpp wrapper.

Pull Request resolved: #101257
Approved by: https://github.com/jgong5, https://github.com/Skylion007, https://github.com/EikanWang, https://github.com/jansel
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1852/head branch June 8, 2023 16:52
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
This is a little questionable because we don't actually know what the dtype of the sympy expression is, and it's not clear we can rely on the assumptions.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: pytorch#95533
Approved by: https://github.com/ngimel, https://github.com/jansel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants