Skip to main content

Canonical CUDA/GPU compatibility metadata for hardware compatibility checking

Project description

hw-compat-matrix

Canonical CUDA/GPU compatibility metadata for hardware compatibility checking.

Overview

This package provides structured data and utilities for:

  • CUDA toolkit version to minimum driver version mapping
  • NVIDIA SM (Streaming Multiprocessor) version to GPU architecture mapping
  • GPU name normalization across cloud providers (Vast.ai, AWS, Lambda, RunPod, Azure)

Installation

pip install hw-compat-matrix

Usage

from hw_compat_matrix import (
    get_min_driver_for_cuda,
    get_architecture_for_sm,
    normalize_gpu_name,
)

# Get minimum driver version for a CUDA toolkit version
min_driver = get_min_driver_for_cuda("12.8")  # Returns "570.26"

# Get GPU architecture for an SM version
arch = get_architecture_for_sm("89")  # Returns "Ada Lovelace"

# Normalize GPU names from different providers
canonical = normalize_gpu_name("RTX_4090", provider="vastai")  # Returns "RTX 4090"

Loading Raw Data

from hw_compat_matrix import (
    load_cuda_driver_matrix,
    load_nvidia_sm_map,
    load_gpu_aliases,
)

# Load raw data as Pydantic models
cuda_matrix = load_cuda_driver_matrix()
sm_map = load_nvidia_sm_map()
gpu_aliases = load_gpu_aliases()

Data Sources

Contributing

Adding New CUDA Versions

  1. Update src/hw_compat_matrix/data/cuda_driver_matrix.yaml
  2. Run validation: pytest tests/
  3. Submit a PR

Adding New GPU Aliases

  1. Update src/hw_compat_matrix/data/gpu_name_aliases.yaml
  2. Run validation: pytest tests/
  3. Submit a PR

License

MIT License - see LICENSE for details.

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

hw_compat_matrix-0.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

hw_compat_matrix-0.1.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file hw_compat_matrix-0.1.1.tar.gz.

File metadata

  • Download URL: hw_compat_matrix-0.1.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hw_compat_matrix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f845e84fce52d0e068a8b29d1a8d4259b690e1bc93594964888855b14c93841f
MD5 4b0189794fb5efe0f3d033cbd3f8a70d
BLAKE2b-256 a15d98eb527c35918767ab2d59f68867dd5ae4e3593875b32210a02332888f90

See more details on using hashes here.

File details

Details for the file hw_compat_matrix-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hw_compat_matrix-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7ecec1f550bf3e60372c0012eaaa1a8ccd75478f8dd511d234c1461122ae9de
MD5 16b58b040914227e0f2009db0b6a0a11
BLAKE2b-256 afe819e4930ae0233478ee2f0a7dda4506b3dab7e54d150f4c0491f7c39f23a8

See more details on using hashes here.

Supported by

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