-
Notifications
You must be signed in to change notification settings - Fork 24.2k
[inductor][dynamo] Include operator name in size/stride/alignment assertion #152353
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152353
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 14bfc7d with merge base c5ebc12 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "topic: not user facing" |
Also looks like lints are failing. |
Thank you @jansel, I’ve pushed updates with your suggestions. |
The lint job still fails. Not sure if this is some transient error though |
You should be able to fix the lints with:
|
@jansel @shunting314 I believe the lint error is now resolved with the latest commit. |
@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 |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
@pytorchbot label "skip-url-lint" |
cc @jansel @shunting314. I've added the skip-url-lint label to bypass transient outages in the Lint link check. In the latest commit, I updated existing tests to reflect recent changes in |
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.
Test failures?
@pytorchbot label ciflow/inductor ciflow/trunk |
@pytorchbot label ciflow/inductor ciflow/trunk |
@pytorchbot label ciflow/trunk |
@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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10 / test (default, 1, 2, linux.rocm.gpu.2) Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: trunk / linux-jammy-rocm-py3.10 / test (default, 1, 2, linux.rocm.gpu.2) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@pytorchbot revert -m "seems to have broken a few internal tests, @jansel may you help the author get his PR merged?" -c ghfirst |
@pytorchbot successfully started a revert job. Check the current status here. |
…ment assertion (#152353)" This reverts commit 725bbb6. Reverted #152353 on behalf of https://github.com/jeanschmidt due to seems to have broken a few internal tests, @jansel may you help the author get his PR merged? ([comment](#152353 (comment)))
@karthickai your PR has been successfully reverted. |
This PR was reopened (likely due to being reverted), so your approval was removed. Please request another review.
Forgot to share internal ref: D74804066 |
Fixes #151930
This PR updates the
assert_size_stride
andassert_alignment
functions in guards.cpp to accept an optionalop_name
argument and includes it in the error messages.The corresponding type stubs in guards.pyi are updated to match the new function arg.
In inductor/ir.py extracts the operator name from the FX graph and passes it into the
codegen_size_asserts
andcodegen_alignment_asserts
functions, so that generated assertions in Triton code include the op name for better debugging.Added unit tests inside test_torchinductor.py.
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @shunting314 @eellison