gpuery
A simple GPU available querier on isolated node
installation
pip install gpuery
or
pip install gpuery[nvml]
There is no functional difference between the above two. The only difference is how to obtain the graphics card information. One uses nvidia-smi and the other uses nvidia-ml-py
usage
from typing import List
import gpuery
idle_cards:List[int] = gpuery.retrive() # get all idle cards in current machine using default threshold
idle_cards:List[int] = gpuery.get_available_gpu_indexes([0, 1]) # get available cards from cards 0,1 using default threshold
thres = gpuery.Threshold(
mem: float = .1 # memory usage percentage
util: float = .2 # utilization usage percentage
power: float = .2 # power usage percentage
temp: int = 40 # temperature limitation in Celsius
)
idle_cards:List[int] = gpuery.retrive(thres) # get all idle cards in current machine using specific threshold
Metadata
Release files for gpuery 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gpuery-0.1.0.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gpuery-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / gpuery-0.1.0.tar.gz
| Download URL | gpuery-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5f8dccc2da9691deb91695b443b02187cd77e9550d0af416a2509c7adef5e1b
|
|
BLAKE2b-256 checksum How to use checksums |
dfc2f0e6ba454bc6bbafec0aac64acf81470516b7581538b6996f9410042185b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Release files / gpuery-0.1.0-py3-none-any.whl
| Download URL | gpuery-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03881b9d9b4d86f7e10dc30cea7746adac54894cbdd41c3cd18e9596491a31d8
|
|
BLAKE2b-256 checksum How to use checksums |
106684cb225611c7307babc9fd0f4483dca15bab1aa503621a167d6fca5a4cd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Security for gpuery 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.