mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[PR #146] [MERGED] fix(api/device): fix passing invalid device handle to NVML functions #171
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#171
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/146
Author: @XuehaiPan
Created: 1/13/2025
Status: ✅ Merged
Merged: 1/13/2025
Merged by: @XuehaiPan
Base:
main← Head:fix-invalid-device-handle📝 Commits (4)
dccbc4dfix(api/device): fix passing invalid device handle to NVML functions958c057docs(CHANGELOG): update CHANGELOG.mdc04750bchore(pre-commit): update pre-commit hooksce6edf7docs: addPYTHONFAULTHANDLER=1variable in bug report📊 Changes
7 files changed (+220 additions, -153 deletions)
View changed files
📝
.github/ISSUE_TEMPLATE/bug-report.yaml(+2 -2)📝
.github/ISSUE_TEMPLATE/feature-request.yaml(+1 -1)📝
.github/ISSUE_TEMPLATE/questions.yaml(+1 -1)📝
.pre-commit-config.yaml(+1 -1)📝
CHANGELOG.md(+1 -0)📝
nvitop-exporter/nvitop_exporter/exporter.py(+2 -3)📝
nvitop/api/device.py(+212 -145)📄 Description
Issue Type
Description
Add guard
self.handle is not Nonein query functions.Motivation and Context
Fixes #145
Fixes #139
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.