Skip to main content

GPUOps

GPUOps is a small CLI for managing shared lab GPUs. It focuses on the first things an admin usually needs: seeing who is using GPUs, finding suspicious idle jobs, safely killing selected GPU processes, and keeping lightweight usage history.

Features

  • Real-time GPU status: memory, utilization, temperature, power, and processes.
  • GPU process list with user, command, working directory, and running time.
  • Kill all processes on a GPU, all GPU processes for a user, or that user on one GPU.
  • Sorting by free memory, used memory, utilization, temperature, or GPU index.
  • Stalled-GPU warning when memory is occupied but utilization stays near zero.
  • Per-user summary across all GPUs.
  • Memory/running-time top view.
  • Lightweight JSONL history sampling and GPU-hour aggregation.
  • Safe-by-default process management: kill is dry-run unless --yes is passed.

Install locally

python3 -m pip install -e .

Commands

gpuops status
gpuops status --sort free --record
gpuops ps --gpu 0
gpuops users
gpuops top --by memory
gpuops doctor
gpuops history --days 30

Kill commands are dry-run by default:

gpuops kill --gpu 3
gpuops kill --user alice
gpuops kill --gpu 3 --user alice

To actually send signals:

gpuops kill --gpu 3 --user alice --yes
gpuops kill --user alice --force --yes

History

gpuops status --record appends one sample to:

~/.local/share/gpuops/history.jsonl

Run it from cron or systemd every minute if you want durable usage stats.

Notes

GPUOps uses nvidia-smi when available and enriches process information from /proc on Linux. On machines without NVIDIA GPUs, commands fail cleanly with a message instead of crashing.

Download files

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

Source Distribution

gpuops-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpuops-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpuops-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gpuops-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aec8b8d84de4997b3f013c8edd5bac303fd2dabe396547fe79a74cf710d8ff95
MD5 b094ba8f0ff9e5e2dcbf1440bff0513d
BLAKE2b-256 1d7a872aeaff295d880f40c8bf4abc7272bea0ac9617a77533888ebd04b7824d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpuops-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gpuops-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb8ce65f434c585bdba7417bbdb3fed3ed59b91ec46bd22a39d09d1da47a234
MD5 e3a75ebc45147f72d0e3f8801c87febe
BLAKE2b-256 539d46c07dea91dc785c300fc6b34f27f70878bf87cc4af1994015a3c040a825

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page