KEMBAR78
[PyTorch] Fix inductor bug with unrolled vectorized prod by swolchok · Pull Request #138542 · pytorch/pytorch · GitHub
Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Oct 22, 2024

Stack from ghstack (oldest at bottom):

This issue is one of two inductor bugs blocking land of #137426. Turned out to be simple

Differential Revision: D64734116

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov

This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 22, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 7eeef66 with merge base fb0da32 (image):

NEW FAILURE - The following job has failed:

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64734116

swolchok added a commit that referenced this pull request Oct 22, 2024
This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

ghstack-source-id: 249268781
Pull Request resolved: #138542
@leslie-fang-intel
Copy link
Collaborator

Thanks for the reproducer! I will try to fix it.

…zed prod"

This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov

[ghstack-poisoned]
…zed prod"

This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the module: cpu CPU specific problem (e.g., perf, algorithm) label Oct 22, 2024
leslie-fang-intel added a commit that referenced this pull request Oct 22, 2024
This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

ghstack-source-id: 70dddf6
Pull Request resolved: #138542
leslie-fang-intel added a commit that referenced this pull request Oct 22, 2024
This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

ghstack-source-id: 0b14666
Pull Request resolved: #138542
@leslie-fang-intel
Copy link
Collaborator

leslie-fang-intel commented Oct 22, 2024

It seems passed the CI now with the fix. cc @jgong5 to take a further look of this fix.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 22, 2024
@swolchok
Copy link
Contributor Author

cool, I wasn't sure this was the right way to fix it but it sure is simple!

…zed prod"

This issue is one of two inductor bugs blocking land of #137426. I don't have a fix yet, but this repros the C++ compile failure.

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64734116

This issue is one of two inductor bugs blocking land of #137426. Turned out to be simple

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64734116

swolchok added a commit that referenced this pull request Oct 22, 2024
Pull Request resolved: #138542

This issue is one of two inductor bugs blocking land of #137426. Turned out to be simple.
ghstack-source-id: 249394951

Differential Revision: [D64734116](https://our.internmc.facebook.com/intern/diff/D64734116/)
@swolchok
Copy link
Contributor Author

@pytorchbot merge

@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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

pytorchmergebot pushed a commit that referenced this pull request Oct 24, 2024
These are ternary ops, not binary ops.

Differential Revision: [D64794253](https://our.internmc.facebook.com/intern/diff/D64794253/)

Pull Request resolved: #138655
Approved by: https://github.com/jgong5, https://github.com/malfet
ghstack dependencies: #138486, #138542
pytorchmergebot pushed a commit that referenced this pull request Oct 24, 2024
The size of the destination array was too small.

Differential Revision: [D64843491](https://our.internmc.facebook.com/intern/diff/D64843491/)
Pull Request resolved: #138716
Approved by: https://github.com/jgong5, https://github.com/malfet
ghstack dependencies: #138486, #138542, #138655
pytorchmergebot pushed a commit that referenced this pull request Oct 24, 2024
There is no guarantee that `len` here is enough for a full vector. This was causing at least one test failure on #137426.

Differential Revision: [D64857786](https://our.internmc.facebook.com/intern/diff/D64857786/)

Pull Request resolved: #138744
Approved by: https://github.com/jgong5, https://github.com/malfet
ghstack dependencies: #138486, #138542, #138655, #138716
pytorchmergebot pushed a commit that referenced this pull request Oct 26, 2024
The correct vector length for ARM64 is 128 bits (16
bytes). We were previously using double this, apparently just because
that would be the same length as AVX2.

Differential Revision: [D63984039](https://our.internmc.facebook.com/intern/diff/D63984039/)

Pull Request resolved: #137426
Approved by: https://github.com/jgong5, https://github.com/malfet
ghstack dependencies: #138486, #138542, #138655, #138716, #138744
@github-actions github-actions bot deleted the gh/swolchok/672/head branch November 24, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged module: cpu CPU specific problem (e.g., perf, algorithm) module: inductor topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants