mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 06:06:12 -06:00
[PR #198] support mthreads gpu monitoring #200
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/XuehaiPan/nvitop/pull/198
Author: @gingerXue
Created: 12/19/2025
Status: 🔄 Open
Base:
main← Head:feat/mtgpu-support📝 Commits (1)
a1c3f09support mthreads-ml-py📊 Changes
3 files changed (+44 additions, -9 deletions)
View changed files
📝
nvitop/api/libnvml.py(+33 -9)📝
nvitop/api/utils.py(+10 -0)📝
pyproject.toml(+1 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.