Skip to content
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

Provide mechanism to disable Python NVTX ranges #12

Open
jrhemstad opened this issue Oct 9, 2020 · 3 comments
Open

Provide mechanism to disable Python NVTX ranges #12

jrhemstad opened this issue Oct 9, 2020 · 3 comments

Comments

@jrhemstad
Copy link
Contributor

In C/C++, NVTX ranges can be disabled, effectively eliminating any overhead of the nvtx function calls (albeit this overhead should already be small when a tool is not attached).

The Python NVTX ranges should have a similar feature that makes any annotation a no-op.

@jrhemstad
Copy link
Contributor Author

@shwina

@sunhs
Copy link

sunhs commented Jul 14, 2023

I think this is still needed. Apart from overhead of nvtx, we usually do a "warmup" before actually profiling a deep learning model, and thus manually disabling nvtx in the warmup run is necessary.

@shwina
Copy link
Contributor

shwina commented Jul 14, 2023

Does setting the environment variable "NVTX_DISABLE" work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants