mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 06:06:12 -06:00
[PR #207] Add gpu-stats.py nvitop logging script #209
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#209
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/207
Author: @danboid
Created: 3/9/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
6a01315Add gpu-stats.py nvitop logging script📊 Changes
1 file changed (+82 additions, -0 deletions)
View changed files
➕
nvitop/gpu-stats.py(+82 -0)📄 Description
Issue Type
Improvement/feature implementation
Description
Add gpu-stats.py logging script.
Motivation and Context
There doesn't seem to be a full example of how to use the nvitop python API in the nvitop repo so I thought I'd contribute the script I use to log GPU stats on my GPU server.
Testing
This script has been tested with multiple NVIDIA A100 GPUs, some with MIG enabled and some without, under proxmox / Debian 13.
The GPU activity column prints a 1 if a process is currently running on that GPU or 0 if it is idle.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.