[PR #172] [MERGED] fix(api/process): fix snapshot cache for GPU processes with shared host process #184

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

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/172
Author: @XuehaiPan
Created: 7/24/2025
Status: Merged
Merged: 7/24/2025
Merged by: @XuehaiPan

Base: mainHead: fix-cpu-snapshot


📝 Commits (2)

  • 789fb3d fix(api/process): fix snapshot cache for GPU processes with shared host process
  • 03e8754 docs(CHANGELOG): update CHANGELOG.md

📊 Changes

2 files changed (+4 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+2 -2)
📝 nvitop/api/process.py (+2 -1)

📄 Description

Issue Type

  • Bug fix

Description

Do not reassign the cache to a new dict if it is empty.

Motivation and Context

Fixes #171


🔄 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/172 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 7/24/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `fix-cpu-snapshot` --- ### 📝 Commits (2) - [`789fb3d`](https://github.com/XuehaiPan/nvitop/commit/789fb3d3401c6d6df8bf2d4299031bb6db9b152b) fix(api/process): fix snapshot cache for GPU processes with shared host process - [`03e8754`](https://github.com/XuehaiPan/nvitop/commit/03e8754e2390fa2adc5de9fc04e9f6fb4a58b836) docs(CHANGELOG): update CHANGELOG.md ### 📊 Changes **2 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -2) 📝 `nvitop/api/process.py` (+2 -1) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Bug fix #### Description <!-- Describe the changes in detail --> Do not reassign the cache to a new `dict` if it is empty. #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Fixes #171 --- <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:23 -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#184
No description provided.