-
Notifications
You must be signed in to change notification settings - Fork 30
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
Small cpu_comparison "pythonic" improvements #601
Conversation
2fe648a
to
9896a40
Compare
e5c7e6b
to
718ef86
Compare
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.
Thanks for the improvements. n_repeats vs num_repeats, not clear what's going on is num-repeats a global default?
Please run black if you haven't already
err I'm blind - I didn't notice
I have black bound to |
Since I didn't realize |
718ef86
to
f0aa863
Compare
f0aa863
to
4e642ff
Compare
I was wondering about this actually, repeating the compile does hurt test time quite badly and I'm not sure it's worth it. Ideally we could have the option for both, and if we're repeating the compile it'd be nice if we could actually diff the artifacts (xclbin?) to see if compilation is deterministic. xclbin might contain timestamps or something which this not possible though. TL;DR: my current thinking is that if we have to choose one or the other, we shouldn't be repeating the compilation, just the run... FFS. |
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.
n_repeats is still confusing: run_test takes as 2 arguments for the number of repeats, one via config (config.n_repeats) and one via n_repeats.
In this PR, can you please remove all changes to n_repeats, and we can get back to it later? Everything else looks good to me
aa4c53c
to
0758cb4
Compare
@newling all set |
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.
Thanks!
I was gonna start working on #581, which is downstream of one of the comparisons, and I started using the script and then got distracted.