mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[PR #28] [MERGED] feat(select): add CUDA visible devices selection tool #128
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#128
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/28
Author: @XuehaiPan
Created: 7/22/2022
Status: ✅ Merged
Merged: 7/22/2022
Merged by: @XuehaiPan
Base:
main← Head:select📝 Commits (7)
993d978feat(core/utils): add functionhuman2bytesc5e56b8feat(select): add CUDA visible devices selection tool4834569docs: add notes fornviselin README.md02c73f8chore(select): sort device index in descending to keep <GPU 0> freeee0faf4chore(select): add convenient option--count87ec418docs: addnviselsample resultsfdd4ee5chore(select): check input value range📊 Changes
7 files changed (+809 additions, -63 deletions)
View changed files
📝
README.md(+112 -0)➕
nvisel.py(+37 -0)📝
nvitop/__init__.py(+2 -1)📝
nvitop/core/device.py(+0 -5)📝
nvitop/core/utils.py(+155 -57)➕
nvitop/select.py(+502 -0)📝
pyproject.toml(+1 -0)📄 Description
Issue Type
Runtime Environment
3.9.13470.129.06nvitopversion or commit:main@0a9048python-ml-pyversion:11.450.51en_US.UTF-8Description
Add CUDA visible devices selection tool
nvisel. Selected a subset of devices satisfying the specified criteria.Motivation and Context
This would simplify the
CUDA_VISIBLE_DEVICESenvironment variable selection.Usage:
Examples:
Python integration:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.