-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Some basic support for uint{16,32,64} codegen in CPU inductor #116810
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
Signed-off-by: Edward Z. Yang <ezyang@meta.com> [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/116810
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4bdf285 with merge base 6ebb26d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
…tor" Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
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.
LGTM. Thanks!
torch.int32: "int", | ||
torch.int16: "short", | ||
torch.int8: "signed char", | ||
torch.uint64: "unsigned long", |
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 a blocker, but as far as I know, while in practice (on 64-bit systems) these types have the right bit-size, this is not guaranteed by the standard. Maybe it's better to use C++11 fixed width integer types? ( https://en.cppreference.com/w/cpp/types/integer ).
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.
Yeah, I don't know why the other usages here weren't using the fixed width types lol
@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 |
Stack from ghstack (oldest at bottom):
Signed-off-by: Edward Z. Yang ezyang@meta.com
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler