-
Notifications
You must be signed in to change notification settings - Fork 1k
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: aarch64: Initial nightly performance test #2837
base: main
Are you sure you want to change the base?
Conversation
Adding a comprehensive performance test to the nightly pipeline. For now, matmul, conv, eltwise and reorders are tested but more tests are to be added in the future. Other minor changes: - Fix benchdnn comparison script - Update precommit performance tests list - Add fast math tests
64fa5ad
to
6f1a913
Compare
@@ -0,0 +1,46 @@ | |||
#! /bin/bash |
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.
Why do we need a separate script for fast math? The BF16 paths should all be exercised by setting the --attr-fast-math
benchdnn flag?
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.
ahhhh was not aware, good to know!
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.
done!
"$2 --reorder --mode=P --perf-template=%prb%,%-time% --batch=${SCRIPT_DIR}/inputs/reorder_nightly >> $4" | ||
) | ||
|
||
for i in {1..5} |
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.
I think we should make the number of runs a variable so it always stays in sync between the loop, and the print statements below.
for i in {1..5} | ||
N = 5 | ||
|
||
for i in {1..$N} |
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.
I don't think this works when N is a variable. I think you want for i in $(seq ${N})
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.
I see you implemented the seq
change but keep in mind by doing seq 0 $N
rather than seq $N
you have changed the number of loops from N
to N+1
. Was this intended?
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.
done!
for i in {1..5} | ||
N = 5 | ||
|
||
for i in {1..$N} |
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.
seq ${N}
again.
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.
done!
7e3fc41
to
ce967d5
Compare
ce967d5
to
54e3b69
Compare
Adding a comprehensive performance test to the nightly pipeline. For now, matmul, conv, eltwise and reorders are tested but more tests are to be added in the future.
Other minor changes:
A run of the new pipeline can be seen in https://github.com/oneapi-src/oneDNN/actions/runs/13707641078. It is currently failing as it is catching a regression that needs to be solved but the pipeline itself is working as it should.