-
Notifications
You must be signed in to change notification settings - Fork 480
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
ci: add benchmarks/run_tests.sh #6043
Conversation
Continues discussion from #6035 |
Nice! CI is running now including the changes in this commit. Will fix. |
Sent #6044 to fix this. |
Rebased to pick up the fix; re-running CI here. |
Glad it is running. A few questions:
|
Right. The test files could be called anything. It's just useful to have them named like that because the file names match the accelerator data they contain (so when passing
That's the point of the test. If the CSV output from aggregate.py changes (e.g. through a valid change that adds a new computation), that means the output "golden" files should also reflect that. This will allow us to catch bugs, i.e. non-functional changes (which are still valid changes) should require no changes to the "golden" files.
Indeed. Here's an example, where I've edited the golden file by replacing a correct value with the
|
Another fix was needed (#6045); re-running CI. |
Re-running CI after another fix (#6047) went in. |
Another fix in #6051. Hopefully this is the last one needed. |
The CI fails with:
Seems the date is different. |
One last comment and feel free to address in a follow-up pr. Could you add some documentation about if the benchmark CI fails, how should the users debug, such as what command to run locally to reproduce the issue? |
Fixed in #6051, re-running now. |
b560bcc
to
31012a8
Compare
Done. |
Tested locally with: ``` $ test/benchmarks/run_tests.sh -L [...] + make -C /src/pytorch/xla/test/benchmarks all make: Entering directory '/src/pytorch/xla/test/benchmarks' AGGREGATE --accelerator=a6000 --test=inference --report=speedup DIFF a6000.inference.speedup.test RM a6000.inference.speedup.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=histogram DIFF v100.inference.histogram.test RM v100.inference.histogram.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=latest DIFF v100.inference.latest.test RM v100.inference.latest.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=speedup DIFF v100.inference.speedup.test RM v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' $ test/benchmarks/run_tests.sh -L -V 1 [...] + make -C /src/pytorch/xla/test/benchmarks V=1 all make: Entering directory '/src/pytorch/xla/test/benchmarks' python3 ../../benchmarks/aggregate.py --accelerator=a6000 --test=inference --report=speedup \ --input-dirname=. --format=csv > a6000.inference.speedup.test.tmp git diff --no-index a6000.inference.speedup.test a6000.inference.speedup.test.tmp rm -f a6000.inference.speedup.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=histogram \ --input-dirname=. --format=csv > v100.inference.histogram.test.tmp git diff --no-index v100.inference.histogram.test v100.inference.histogram.test.tmp rm -f v100.inference.histogram.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=latest \ --input-dirname=. --format=csv > v100.inference.latest.test.tmp git diff --no-index v100.inference.latest.test v100.inference.latest.test.tmp rm -f v100.inference.latest.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=speedup \ --input-dirname=. --format=csv > v100.inference.speedup.test.tmp git diff --no-index v100.inference.speedup.test v100.inference.speedup.test.tmp rm -f v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' ```
Finally CI is passing. |
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.
LGTM
Tested locally with: ``` $ test/benchmarks/run_tests.sh -L [...] + make -C /src/pytorch/xla/test/benchmarks all make: Entering directory '/src/pytorch/xla/test/benchmarks' AGGREGATE --accelerator=a6000 --test=inference --report=speedup DIFF a6000.inference.speedup.test RM a6000.inference.speedup.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=histogram DIFF v100.inference.histogram.test RM v100.inference.histogram.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=latest DIFF v100.inference.latest.test RM v100.inference.latest.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=speedup DIFF v100.inference.speedup.test RM v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' $ test/benchmarks/run_tests.sh -L -V 1 [...] + make -C /src/pytorch/xla/test/benchmarks V=1 all make: Entering directory '/src/pytorch/xla/test/benchmarks' python3 ../../benchmarks/aggregate.py --accelerator=a6000 --test=inference --report=speedup \ --input-dirname=. --format=csv > a6000.inference.speedup.test.tmp git diff --no-index a6000.inference.speedup.test a6000.inference.speedup.test.tmp rm -f a6000.inference.speedup.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=histogram \ --input-dirname=. --format=csv > v100.inference.histogram.test.tmp git diff --no-index v100.inference.histogram.test v100.inference.histogram.test.tmp rm -f v100.inference.histogram.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=latest \ --input-dirname=. --format=csv > v100.inference.latest.test.tmp git diff --no-index v100.inference.latest.test v100.inference.latest.test.tmp rm -f v100.inference.latest.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=speedup \ --input-dirname=. --format=csv > v100.inference.speedup.test.tmp git diff --no-index v100.inference.speedup.test v100.inference.speedup.test.tmp rm -f v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' ```
Tested locally with: ``` $ test/benchmarks/run_tests.sh -L [...] + make -C /src/pytorch/xla/test/benchmarks all make: Entering directory '/src/pytorch/xla/test/benchmarks' AGGREGATE --accelerator=a6000 --test=inference --report=speedup DIFF a6000.inference.speedup.test RM a6000.inference.speedup.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=histogram DIFF v100.inference.histogram.test RM v100.inference.histogram.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=latest DIFF v100.inference.latest.test RM v100.inference.latest.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=speedup DIFF v100.inference.speedup.test RM v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' $ test/benchmarks/run_tests.sh -L -V 1 [...] + make -C /src/pytorch/xla/test/benchmarks V=1 all make: Entering directory '/src/pytorch/xla/test/benchmarks' python3 ../../benchmarks/aggregate.py --accelerator=a6000 --test=inference --report=speedup \ --input-dirname=. --format=csv > a6000.inference.speedup.test.tmp git diff --no-index a6000.inference.speedup.test a6000.inference.speedup.test.tmp rm -f a6000.inference.speedup.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=histogram \ --input-dirname=. --format=csv > v100.inference.histogram.test.tmp git diff --no-index v100.inference.histogram.test v100.inference.histogram.test.tmp rm -f v100.inference.histogram.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=latest \ --input-dirname=. --format=csv > v100.inference.latest.test.tmp git diff --no-index v100.inference.latest.test v100.inference.latest.test.tmp rm -f v100.inference.latest.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=speedup \ --input-dirname=. --format=csv > v100.inference.speedup.test.tmp git diff --no-index v100.inference.speedup.test v100.inference.speedup.test.tmp rm -f v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' ```
Tested locally with: ``` $ test/benchmarks/run_tests.sh -L [...] + make -C /src/pytorch/xla/test/benchmarks all make: Entering directory '/src/pytorch/xla/test/benchmarks' AGGREGATE --accelerator=a6000 --test=inference --report=speedup DIFF a6000.inference.speedup.test RM a6000.inference.speedup.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=histogram DIFF v100.inference.histogram.test RM v100.inference.histogram.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=latest DIFF v100.inference.latest.test RM v100.inference.latest.test.tmp AGGREGATE --accelerator=v100 --test=inference --report=speedup DIFF v100.inference.speedup.test RM v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' $ test/benchmarks/run_tests.sh -L -V 1 [...] + make -C /src/pytorch/xla/test/benchmarks V=1 all make: Entering directory '/src/pytorch/xla/test/benchmarks' python3 ../../benchmarks/aggregate.py --accelerator=a6000 --test=inference --report=speedup \ --input-dirname=. --format=csv > a6000.inference.speedup.test.tmp git diff --no-index a6000.inference.speedup.test a6000.inference.speedup.test.tmp rm -f a6000.inference.speedup.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=histogram \ --input-dirname=. --format=csv > v100.inference.histogram.test.tmp git diff --no-index v100.inference.histogram.test v100.inference.histogram.test.tmp rm -f v100.inference.histogram.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=latest \ --input-dirname=. --format=csv > v100.inference.latest.test.tmp git diff --no-index v100.inference.latest.test v100.inference.latest.test.tmp rm -f v100.inference.latest.test.tmp python3 ../../benchmarks/aggregate.py --accelerator=v100 --test=inference --report=speedup \ --input-dirname=. --format=csv > v100.inference.speedup.test.tmp git diff --no-index v100.inference.speedup.test v100.inference.speedup.test.tmp rm -f v100.inference.speedup.test.tmp make: Leaving directory '/src/pytorch/xla/test/benchmarks' ```
Tested locally with: