-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVTX Push and Pop Context Manager? #121663
Comments
Hi @wkaisertexas, Lines 77 to 91 in 5b5d423
Although, I am afraid it is not documented. |
The context manager `torch.cuda.nvtx.range` has been around for about 4 years (see #42925). Unfortunately, it was never documented and as a consequence users are just unaware of it (see #121663). Pull Request resolved: #121699 Approved by: https://github.com/janeyx99
@wkaisertexas, as the |
Yeah, I saw that here: |
馃殌 The feature, motivation and pitch
Could the two functions:
torch.cuda.nvtx.range_push("msg")
torch.cuda.nvtx.range_pop()
Be combined into a easy-to-use context manager?
Doing this would be dead simple and make using range push and pop less error-prone.
Alternatives
No response
Additional context
No response
cc @ptrblck
The text was updated successfully, but these errors were encountered: