-
Notifications
You must be signed in to change notification settings - Fork 548
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
Make all nvtx usage go through safe imports #5424
Make all nvtx usage go through safe imports #5424
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.
Looks good except for the use of null_decorator
as a context manager. Should be an easy thing to fix, though.
@@ -153,7 +157,7 @@ def fprime_f(x): | |||
warn_flag = np.zeros(num_batches) | |||
|
|||
while not all(converged): | |||
with nvtx.annotate("LBFGS-ITERATION", domain="cuml_python"): | |||
with nvtx_annotate("LBFGS-ITERATION", domain="cuml_python"): |
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 believe null_decorator
currently works as a context manager. That would be an easy thing to fix, though. We'd just need to make it an instance of contextlib.ContextDecorator
, and we probably should do so since nvtx_annotate
can be used as either one.
/merge |
No description provided.