KEMBAR78
[AOTInductor] Improve validation for C++ wrapper codegen by khabinov · Pull Request #111102 · pytorch/pytorch · GitHub
Skip to content

Conversation

@khabinov
Copy link
Contributor

@khabinov khabinov commented Oct 12, 2023

It's a reimplementation of #111089

  1. When using fake inputs make sure they are on the same device as the original inputs.
  2. Don't change the value of self.cpp_wrapper from True to False if can't generate a C++ wrapper, instead have a check and fail early to avoid producing Python code for C++ compiler.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 12, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 9d91b5b with merge base 74b1f4f (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@khabinov
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Oct 12, 2023
@khabinov khabinov force-pushed the oleg/codegen-validation branch 2 times, most recently from d95892d to 96dd273 Compare October 12, 2023 06:41
@khabinov khabinov force-pushed the oleg/codegen-validation branch from 96dd273 to 43d345e Compare October 12, 2023 16:44
Copy link
Contributor

@desertfire desertfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chunyuan-w , we are changing this silent fallback behavior for cpp_wrapper codegen as we have a pretty good coverage now.

@khabinov khabinov force-pushed the oleg/codegen-validation branch from 43d345e to eb71de1 Compare October 12, 2023 23:29
@khabinov khabinov force-pushed the oleg/codegen-validation branch from eb71de1 to 9d91b5b Compare October 13, 2023 00:55
@khabinov
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 13, 2023
@pytorchmergebot
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants