support mthreads gpu monitoring #198
Open
+44
−9
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.
Issue Type
Runtime Environment
Ubuntu 22.04.4 LTxterm-256color3.10.12N/A2.2.0nvitopversion or commit:1.6.2.dev4+g31792ddmthreads-ml-pyversion:2.2.0C.UTF-8Description
This PR adds Mthreads GPU (mtml) support to
nvitop, enabling basic GPU monitoring on platforms where mtml is available. We developed a wrapper layer for mthreads-ml-py which it can use nvml methods to avoid too many changes in this project.The implementation is designed to be non-intrusive and fully backward compatible with existing NVML-based workflows.
Motivation and Context
nvitopcurrently relies on NVIDIA NVML, which makes it unusable on systems equipped with MTGPU devices.In such environments, users lack a lightweight, top-like GPU monitoring tool.
This PR aims to:
nvitopto support MTGPU-based platformsDesign & Implementation
mtml, parallel to the existing NVML backendnvml→ NVIDIA GPUsmtml→ MTGPU devicesnvitop's internal data structuresCurrently Supported Features (MTGPU)
Not Yet Supported
Testing
Tested on:
mtmlManual test cases include:
nvitopstartup and refreshbasic api test
Future Work
Images / Videos