Propagate detailed location information of shape guards to guards/recompiles output#136917
Propagate detailed location information of shape guards to guards/recompiles output#136917ezyang wants to merge 6 commits intogh/ezyang/2944/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136917
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 170 PendingAs of commit 010a245 with merge base failed to retrieve merge base, please contact dev infra: NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge failedReason: Not merging any PRs at the moment because there is a merge blocking https://github.com/pytorch/pytorch/labels/ci:%20sev issue open at: Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 2 checks: Lint / Test Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: inductor / cuda12.1-py3.10-gcc9-sm86 / test (aot_inductor_torchbench, 2, 2, lf.linux.g5.4xlarge.nvidia.gpu) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f "unrelated problems" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #136934 Approved by: https://github.com/Skylion007 ghstack dependencies: #136917
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #136935 Approved by: https://github.com/Skylion007 ghstack dependencies: #136917, #136934
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #136972 Approved by: https://github.com/Skylion007 ghstack dependencies: #136917, #136934, #136935
…ch#136972) Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: pytorch#136972 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#136917, pytorch#136934, pytorch#136935
Stack from ghstack (oldest at bottom):
To see the payoff, look at test/dynamo/test_logging.py
The general idea is to refactor produce_guards into produce_guards_verbose which also returns verbose code parts, which have our annotations.
The rest of the logic is plumbing around SLocs to the places they need to be so we can print them. Guards are easy; value ranges and duck sizing take more care.
Signed-off-by: Edward Z. Yang ezyang@meta.com
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @rec