-
Notifications
You must be signed in to change notification settings - Fork 64
[Autotuner] Use cudagraph for time measurement on Nvidia hardware #1089
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
base: main
Are you sure you want to change the base?
Conversation
2f48f68 to
ec44631
Compare
njriasan
left a comment
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! Thanks!
13e5356 to
ac88d91
Compare
|
doesn't this make autotuning time much slower? |
e612b6f to
9b3e31d
Compare
yeah I think with original |
873f9d6 to
5001a53
Compare
jansel
left a comment
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.
How are you testing that this is giving more stable measurements?
Can you share some data?
| else: | ||
| res = do_bench( | ||
| **kwargs, | ||
| return_mode="median", |
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.
Does the above also use median? Median tends to remove outliers.
| if not self._in_ref_eager_mode: | ||
| return | ||
|
|
||
| import pytest |
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 the numbers from this match those from the This benchmarking function isn't the main one we use, we use it to get a rough initial time then do interleaved benchmarking on the best configs. |
9449ed8 to
51ca2fe
Compare
ah I see, then I think the current We could split the K further into K1 * K2, and cudagraph over K2 iterations as one timing region. But I am slightly unsure if this is worth doing given the higher complexity. |
This should make timing on Nvidia hardware more accurate.