-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[inductor][cpu]lennard_jones, pyhpc_isoneutral_mixing and pyhpc_equation_of_state performance regression in 2024-05-12 nightly release #126293
Labels
oncall: cpu inductor
CPU Inductor issues for Intel team to triage
Comments
chuanqi129
added
the
oncall: cpu inductor
CPU Inductor issues for Intel team to triage
label
May 15, 2024
Hi @aorenste, according to the bisect search log and test results, the PR #122074 may introduce performance regression issues on CPU, could you please help to double check it? |
aorenste
added a commit
that referenced
this issue
May 23, 2024
The original change was about 9.5% slower than then backout. This improves it to be only about 1.41% slower than the backout. Fixes #126293 Ran torchbench 3 times on each change. Perf values before (stable), after (fix), and with #122074 backed out (backout): ``` ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_isoneutral_mixing amp first dynamic cpp stable: 43.948x 45.754x 44.906x fix: 47.505x 49.987x 47.493x backout: 48.243x 48.199x 48.192x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_equation_of_state amp first static default stable: 15.224x 13.286x 15.354x fix: 16.402x 16.370x 16.183x backout: 16.554x 16.675x 16.787x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench lennard_jones float32 first static default stable: 1.712x 1.651x 1.640x fix: 1.804x 1.798x 1.792x backout: 1.864x 1.824x 1.836x ``` [ghstack-poisoned]
aorenste
added a commit
that referenced
this issue
May 23, 2024
The original change was about 9.5% slower than then backout. This improves it to be only about 1.41% slower than the backout. Fixes #126293 Ran torchbench 3 times on each change. Perf values before (stable), after (fix), and with #122074 backed out (backout): ``` ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_isoneutral_mixing amp first dynamic cpp stable: 43.948x 45.754x 44.906x fix: 47.505x 49.987x 47.493x backout: 48.243x 48.199x 48.192x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_equation_of_state amp first static default stable: 15.224x 13.286x 15.354x fix: 16.402x 16.370x 16.183x backout: 16.554x 16.675x 16.787x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench lennard_jones float32 first static default stable: 1.712x 1.651x 1.640x fix: 1.804x 1.798x 1.792x backout: 1.864x 1.824x 1.836x ``` ghstack-source-id: ecdcee8881a666a27530ce73f2c0d1b1276e7b20 Pull Request resolved: #126996
aorenste
added a commit
that referenced
this issue
May 23, 2024
The original change was about 9.5% slower than then backout. This improves it to be only about 1.41% slower than the backout. Fixes #126293 Ran torchbench 3 times on each change. Perf values before (stable), after (fix), and with #122074 backed out (backout): ``` ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_isoneutral_mixing amp first dynamic cpp stable: 43.948x 45.754x 44.906x fix: 47.505x 49.987x 47.493x backout: 48.243x 48.199x 48.192x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_equation_of_state amp first static default stable: 15.224x 13.286x 15.354x fix: 16.402x 16.370x 16.183x backout: 16.554x 16.675x 16.787x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench lennard_jones float32 first static default stable: 1.712x 1.651x 1.640x fix: 1.804x 1.798x 1.792x backout: 1.864x 1.824x 1.836x ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang [ghstack-poisoned]
aorenste
added a commit
that referenced
this issue
May 23, 2024
The original change was about 9.5% slower than then backout. This improves it to be only about 1.41% slower than the backout. Fixes #126293 Ran torchbench 3 times on each change. Perf values before (stable), after (fix), and with #122074 backed out (backout): ``` ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_isoneutral_mixing amp first dynamic cpp stable: 43.948x 45.754x 44.906x fix: 47.505x 49.987x 47.493x backout: 48.243x 48.199x 48.192x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_equation_of_state amp first static default stable: 15.224x 13.286x 15.354x fix: 16.402x 16.370x 16.183x backout: 16.554x 16.675x 16.787x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench lennard_jones float32 first static default stable: 1.712x 1.651x 1.640x fix: 1.804x 1.798x 1.792x backout: 1.864x 1.824x 1.836x ``` ghstack-source-id: 2342f889c59771845dd46ac5a6d1f3c1fe5d1d10 Pull Request resolved: #126996
titaiwangms
pushed a commit
to titaiwangms/pytorch
that referenced
this issue
May 28, 2024
The original change was about 9.5% slower than then before pytorch#122074 . This improves it to be only about 1.4% slower. Also touched up some unrelated nits that the linter complained about. Fixes pytorch#126293 Ran torchbench 3 times on each change. Perf values before (stable), after (fix), and with pytorch#122074 backed out (backout): ``` ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_isoneutral_mixing amp first dynamic cpp stable: 43.948x 45.754x 44.906x fix: 47.505x 49.987x 47.493x backout: 48.243x 48.199x 48.192x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench pyhpc_equation_of_state amp first static default stable: 15.224x 13.286x 15.354x fix: 16.402x 16.370x 16.183x backout: 16.554x 16.675x 16.787x ../inductor-tools/scripts/modelbench/inductor_single_run.sh single inference performance torchbench lennard_jones float32 first static default stable: 1.712x 1.651x 1.640x fix: 1.804x 1.798x 1.792x backout: 1.864x 1.824x 1.836x ``` Pull Request resolved: pytorch#126996 Approved by: https://github.com/jansel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Describe the bug
fp32 static shape default wrapper
fp32 dynamic shape default wrapper
fp32 static shape cpp wrapper
fp32 dynamic shape cpp wrapper
AMP static shape default wrapper
AMP dynamic shape default wrapper
AMP dynamic shape cpp wrapper
SW info
Repro:
inductor_single_run.sh
bash inductor_single_run.sh single inference performance torchbench model float32/amp first dynamic/static default/cpp
Suspected guilty commit: b23b6e7
torchbench-pyhpc_isoneutral_mixing-inference-float32-static-default-single-performance-drop_guilty_commit.log
cc @WeizhuoZhang-intel @chuanqi129
The text was updated successfully, but these errors were encountered: