-
Notifications
You must be signed in to change notification settings - Fork 94
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
Adding MIGRAPHX_TIME_MATCHERS #3500
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3500 +/- ##
========================================
Coverage 92.33% 92.33%
========================================
Files 519 519
Lines 22261 22265 +4
========================================
+ Hits 20555 20559 +4
Misses 1706 1706 ☔ View full report in Codecov by Sentry. |
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.
- The time measurements should be done in the
find_matches_for
function. - There should also be an environment variable to enable it like
MIGRAPHX_TIME_MATCHERS
. - Trace filter should probably be used to reduce down the amount of printouts.
@pfultz2 does every single matcher go through
This is a good way to globally enable/disable match timing. But maybe we also want to enable/disable timing programmatically for individual matchers? Aarushi, in your experience would this be helpful?
I suggest wrapping the timer function in a macro so you can easily insert/remove it from the list in individual passes'
which would be less repetitive work than wrapping each matcher in curly brackets as Aarushi has done. What do you think? |
Yes.
The
I would like to avoid needing to change the source code to get timings. We dont do it for the passes. This will let us get timings on deployed systems so we dont need to rebuild migraphx. |
This build is not recommended to merge 🔴 |
🔴bert_large_uncased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output |
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.
It seems there is very little difference in the debug outputs, between the new environment variable, MIGRAPHX_TIME_MATCHERS
being set, and the result of trace_for
option match.
Does one even need this new variable in that case: unless your print clauses are gated by if(time_matchers and trace_for)
-- The or
is replaced by and
.
I am approving this PR, never-the-less, for it gives out the necessary time-related info that one is interested in.
No description provided.