-
Notifications
You must be signed in to change notification settings - Fork 107
Enabling NCU Metric Profiling via Pythonic API #105
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… to patch some nsight python functions to get this to work
…for timing witih nsight python
Collaborator
Author
|
Great job @kesavanramakrishnan and thank you @jason-yoo-108 for your helpful discussion and feedback! We can improve it in future PR to make it easier to integrate or avoid rerunning program triggered by |
This was referenced Jan 8, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrate Nsight Python profiling
This PR wires up NVIDIA’s nsight-python to:
Nsight Python is a recent Pythonic wrapper on NCU released by NVIDIA, which makes it a lot easier to profile metrics of interest. We tested this with their 0.95 release.
Note to leverage NCU or hardware counter you might need hardware counter access (often come with sudo access); this is currently not possible with
modalexecution or some cloud provider's GPU; you must use a local GPU.This is also an experimental feature serve as additional toolkit, not integrated in the core eval loop right now.
Also fix package wheel issue of some package data in this PR as mentioned in #117