Skip to main content

A simple GPU available querier on isolated node

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpuery-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

gpuery-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file gpuery-0.1.0.tar.gz.

File metadata

  • Download URL: gpuery-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for gpuery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5f8dccc2da9691deb91695b443b02187cd77e9550d0af416a2509c7adef5e1b
MD5 da4d6765ba1fdf20e91e1785f91c5223
BLAKE2b-256 dfc2f0e6ba454bc6bbafec0aac64acf81470516b7581538b6996f9410042185b

See more details on using hashes here.

File details

Details for the file gpuery-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gpuery-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for gpuery-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03881b9d9b4d86f7e10dc30cea7746adac54894cbdd41c3cd18e9596491a31d8
MD5 57553bc093187cb9ac17754626f1b6d9
BLAKE2b-256 106684cb225611c7307babc9fd0f4483dca15bab1aa503621a167d6fca5a4cd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page