[PR #195] [MERGED] feat(api/device): support devices with unified memory #199

Closed
opened 2026-05-05 03:27:40 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/195
Author: @XuehaiPan
Created: 12/1/2025
Status: Merged
Merged: 12/8/2025
Merged by: @XuehaiPan

Base: mainHead: support-unified-memory


📝 Commits (10+)

  • 6b744fa chore(pre-commit): add pre-commit hooks
  • 7ce07f7 fix(api): fix potential ZeroDivisionError
  • 149951c feat(api/device): support devices with unified memory
  • 3c80af8 docs: add docstrings
  • 9b658c0 fix(api/device): handle NVMLError_NotSupported for unified memory devices
  • 14a95c2 fix: fix unbound variable access
  • e435cf5 chore: hide extra text in bar chart if N/A
  • 00169aa chore: improve extra text in bar chart if N/A
  • 2d26184 chore(pre-commit): update pre-commit hooks
  • 04fbbfb docs(CHANGELOG): update CHANGELOG.md

📊 Changes

6 files changed (+97 additions, -25 deletions)

View changed files

📝 .pre-commit-config.yaml (+2 -2)
📝 CHANGELOG.md (+1 -1)
📝 nvitop/api/device.py (+79 -18)
📝 nvitop/api/process.py (+5 -1)
📝 nvitop/tui/library/utils.py (+8 -1)
📝 nvitop/tui/screens/main/panels/device.py (+2 -2)

📄 Description

Issue Type

  • Improvement/feature implementation

Description

Retrieve memory info with host APIs for devices with unified memory.

Motivation and Context

Resolves #193


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/195 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 12/1/2025 **Status:** ✅ Merged **Merged:** 12/8/2025 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `support-unified-memory` --- ### 📝 Commits (10+) - [`6b744fa`](https://github.com/XuehaiPan/nvitop/commit/6b744fa8d707152d524abf8187ec5a90dc7a5f96) chore(pre-commit): add pre-commit hooks - [`7ce07f7`](https://github.com/XuehaiPan/nvitop/commit/7ce07f7db734f491e8207d2c890389fd9b5b0cda) fix(api): fix potential `ZeroDivisionError` - [`149951c`](https://github.com/XuehaiPan/nvitop/commit/149951c2f1947a96c273dd1384b44ed24147131c) feat(api/device): support devices with unified memory - [`3c80af8`](https://github.com/XuehaiPan/nvitop/commit/3c80af8d75e84a3a1d3216f3eca5a60e43aaeab0) docs: add docstrings - [`9b658c0`](https://github.com/XuehaiPan/nvitop/commit/9b658c00001a5d87080d39ae46211251298dbbbc) fix(api/device): handle `NVMLError_NotSupported` for unified memory devices - [`14a95c2`](https://github.com/XuehaiPan/nvitop/commit/14a95c22cfa31d2c7b8ba62e3e60f90ed108d6d5) fix: fix unbound variable access - [`e435cf5`](https://github.com/XuehaiPan/nvitop/commit/e435cf530087baebaa8440e1d305ebf3415e06d1) chore: hide extra text in bar chart if `N/A` - [`00169aa`](https://github.com/XuehaiPan/nvitop/commit/00169aa7e306df48f9fc5e631b523fa5d3aed884) chore: improve extra text in bar chart if `N/A` - [`2d26184`](https://github.com/XuehaiPan/nvitop/commit/2d26184e3b8afd7f8d853b49c0772b14c4feb409) chore(pre-commit): update pre-commit hooks - [`04fbbfb`](https://github.com/XuehaiPan/nvitop/commit/04fbbfb2537a37f7e691e56de02269bc83a0c37c) docs(CHANGELOG): update CHANGELOG.md ### 📊 Changes **6 files changed** (+97 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `.pre-commit-config.yaml` (+2 -2) 📝 `CHANGELOG.md` (+1 -1) 📝 `nvitop/api/device.py` (+79 -18) 📝 `nvitop/api/process.py` (+5 -1) 📝 `nvitop/tui/library/utils.py` (+8 -1) 📝 `nvitop/tui/screens/main/panels/device.py` (+2 -2) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Description <!-- Describe the changes in detail --> Retrieve memory info with host APIs for devices with unified memory. #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Resolves #193 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:27:40 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#199
No description provided.