mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[PR #30] [MERGED] feat(core/libnvml): add compatibility layers for NVML Python bindings #129
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#129
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/30
Author: @XuehaiPan
Created: 7/24/2022
Status: ✅ Merged
Merged: 10/17/2022
Merged by: @XuehaiPan
Base:
main← Head:backward-compatibility📝 Commits (8)
b88ecfefeat(core/libnvml): add compatibility layers for process info9c9b028chore(core/libnvml): update supportednvidia-ml-pyversion listabd98d8feat(core/libnvml): add compatibility layers for memory info5054849docs: add notes for environment variableLOGLEVEL6c343a2fix(core/libnvml): fix memory version 2 API arguments34253e5chore(core/libnvml): update supportednvidia-ml-pyversion listc103922chore(core/libnvml): add notes for incompatiblenvidia-ml-pypackage for memory info version 2 APIs5bce06dstyle(core/libnvml): rename functions📊 Changes
7 files changed (+286 additions, -23 deletions)
View changed files
📝
.github/ISSUE_TEMPLATE.md(+2 -1)📝
README.md(+1 -14)📝
nvitop/cli.py(+22 -3)📝
nvitop/core/libnvml.py(+256 -3)📝
nvitop/version.py(+3 -0)📝
pyproject.toml(+1 -1)📝
requirements.txt(+1 -1)📄 Description
Issue Type
Runtime Environment
3.9.13470.129.06nvitopversion or commit:v0.7.1python-ml-pyversion:11.450.51en_US.UTF-8Description
Automatically patch the
pynvmlmodule when the first call fails when calling the versioned APIs. Now we support a more broad range of the PyPI packagenvidia-ml-pydependency versions.Motivation and Context
See #29 for more details.
Resolves #29
Closes #13
Testing
Using
nvidia-ml-py == 11.515.48with the NVIDIA R430 driver (CUDA 10.x):Result:
The v3 API
nvmlDeviceGetComputeRunningProcesses_v3fails-back to v2 APInvmlDeviceGetComputeRunningProcesses_v2(which could not found either), then fails-back to v1 APInvmlDeviceGetComputeRunningProcesses.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
getpass.getuser()#169