-
Notifications
You must be signed in to change notification settings - Fork 19
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
profiling: don't carry kwargs around #179
Conversation
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 for working on this. As to your comment regarding 10% overhead, what is the baseline? Does this represent an increase in overhead? If so, where's that coming from? I don't see any change that I would spontaneously blame for a cost increase.
The baseline is profiling without this PR, ie, 10% additional overhead compared to the normal profiling overhead. I believe this is due to calling |
As a side question: part of the overhead appears to come from the fact that |
It's expected that it is slow the first time it happens. (A hash of the whole program needs to be computed, after all. Every expression, every variable definition, the whole thing.) It should however not stay slow. But I think we can make it fast the second and following times: inducer/loopy#185 |
Nice, thanks! ;-) |
inducer/loopy#185 is merged. Could you try again and report overhead? |
I ran these a few times but still can not believe my lying eyes: (Lassen/pocl/GPU; Vortex2D/450 elements/100 time steps)
|
Huh, nice. I'm glad we dug into the overhead a bit more. This looks good to merge then, especially given that it seems to have negative overhead now. :P |
Fixes #177.
Approx.
10%-2% overhead vs. profiling withmaster
branch.