Skip to content

Migrate from pynvml to cuda.core.system#34

Merged
hsahuja0805 merged 6 commits intoNVIDIA:mainfrom
mdboom:pynvml-to-cuda.core.system
Apr 24, 2026
Merged

Migrate from pynvml to cuda.core.system#34
hsahuja0805 merged 6 commits intoNVIDIA:mainfrom
mdboom:pynvml-to-cuda.core.system

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented Apr 15, 2026

This migrates nsight-python from using pynvml to cuda.core.system. cuda.core.system is the new wrapper for NVML based on cybind and Cython that has much lower runtime overhead and better memory safety than the ctypes-based pynvml.

Comment thread pyproject.toml Outdated
"nvidia-ml-py",
"ncu-report",
"deepdiff",
"cuda-core>=0.7.0"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Is there anything in cuda.core.system which is toolkit specific (cu12 or cu13) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cuda-core package is universal (it includes copies of both in a single package).

Comment thread nsight/thermovision.py Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed to self.device

@hsahuja0805 hsahuja0805 merged commit fef935c into NVIDIA:main Apr 24, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

4 participants