Skip to main content

logo

Taeda

A lightweight Python library for GPU utilities and performance estimation.

Taeda is a Python package that adds more functions to Pytorch.

Features

  • Detect available NVIDIA CUDA GPUs.
  • Retrieve GPU clock speeds in real time.
  • Calculate CUDA core counts.
  • Estimate theoretical FP32 TFLOPS.
  • Support multiple NVIDIA GPUs.
  • Simple Python API.

Installation

pip install taeda

Requirements

  • Python 3.9+
  • PyTorch
  • NVIDIA GPU
  • NVIDIA drivers
  • nvidia-ml-py

Usage

import taeda

# Get theoretical GPU performance
tflops = taeda.get_tflops(0)

print(f"GPU Performance: {tflops:.3f} TFLOPS")

# Get GPU information and statistics
stats = taeda.get_gpu_stats(0)

print(stats)

Example output:

GPU Performance: 0.622 TFLOPS

CUDA is available
Device name: NVIDIA GeForce GTX 1070 Ti
Device index: 0
CUDA version: 12.1
Total VRAM: 8.00 GB
Used VRAM: 1.24 GB
Free VRAM: 6.76 GB

API

get_tflops(device_num=0)

Estimates the theoretical FP32 performance of an NVIDIA GPU.

Parameter Description
device_num CUDA GPU index (default: 0)

Returns: Estimated FP32 performance in TFLOPS (float), or None if CUDA is unavailable.

Raises: ValueError if the GPU index is invalid.

The clock speed is retrieved dynamically through NVML.

get_gpu_stats(device_num=0)

Retrieves GPU information and memory statistics using PyTorch CUDA.

Parameter Description
device_num CUDA GPU index (default: 0)

Returns: A formatted string containing:

  • CUDA availability
  • GPU device name
  • GPU device index
  • CUDA version
  • Total VRAM
  • Used VRAM
  • Free VRAM

Raises: Returns an error message if CUDA is unavailable or the GPU index is invalid.

Limitations

  • TFLOPS values are theoretical estimates, not measured benchmark results.
  • Clock speeds fluctuate depending on GPU load, temperature and power limits.
  • CUDA core counts depend on GPU architecture.
  • Currently intended for supported NVIDIA CUDA GPUs.
  • Actual application performance depends on memory bandwidth, workload and other hardware limitations.
  • GPU memory statistics depend on PyTorch CUDA availability.

License

MIT License.

Metadata

Release files for taeda 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taeda 0.2.0
File Size Uploaded Provenance Actions
taeda-0.2.0.tar.gz 3.1 kB Without provenance Details for taeda-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for taeda 0.2.0
File Interpreter ABI Platform Actions
taeda-0.2.0-py3-none-any.whl Python 3 none any Details for taeda-0.2.0-py3-none-any.whl

Total release size: 6.7 kB

Release files / taeda-0.2.0.tar.gz

Download URL taeda-0.2.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
78697b202031576e3c0a13854d3a3b1d230e78a0c0307faaf3007563e0286b1e
BLAKE2b-256 checksum
How to use checksums
22f470d95875e6773ad2d446b113bf5e8ab8875ae4bf3b1e8bb4b9d7c80da078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release files / taeda-0.2.0-py3-none-any.whl

Download URL taeda-0.2.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da5b8780017d8153d9310952475091a521194b0ccaef58367a8604916cd50e8a
BLAKE2b-256 checksum
How to use checksums
f324bdb02ece13ef7719218727b97b04778aae185356d0b8878b2c3b71d9ea22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Security for taeda 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page