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
Labels
enhancement New feature or request Python

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?

@evanramos-nvidia evanramos-nvidia added Python enhancement New feature or request labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Python
Projects
None yet
Development

No branches or pull requests

4 participants