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
- cuda_driver_matrix.yaml: From CUDA Toolkit Release Notes
- nvidia_sm_map.yaml: From CUDA GPUs
- gpu_name_aliases.yaml: Collected from provider APIs
Contributing
Adding New CUDA Versions
- Update
src/hw_compat_matrix/data/cuda_driver_matrix.yaml - Run validation:
pytest tests/ - Submit a PR
Adding New GPU Aliases
- Update
src/hw_compat_matrix/data/gpu_name_aliases.yaml - Run validation:
pytest tests/ - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hw_compat_matrix-0.3.2.tar.gz.
File metadata
- Download URL: hw_compat_matrix-0.3.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
887e3b2c4fcf07f3a65e2badf660f49a83a080793e95b408f7f4854a6bf08d99
|
|
| MD5 |
d22f6c2e3e4d95f386c30d5571ad43ea
|
|
| BLAKE2b-256 |
c9ce13ec3bc3a75a1235ee43eb3bb1333f3d2a0571d9fe71ef974e5983bf0793
|
Provenance
The following attestation bundles were made for hw_compat_matrix-0.3.2.tar.gz:
Publisher:
publish.yml on ATTMOS/hw-compat-matrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hw_compat_matrix-0.3.2.tar.gz -
Subject digest:
887e3b2c4fcf07f3a65e2badf660f49a83a080793e95b408f7f4854a6bf08d99 - Sigstore transparency entry: 1237331439
- Sigstore integration time:
-
Permalink:
ATTMOS/hw-compat-matrix@d2d3ebe8a94fb1b446f3fb3833a0e0e330749289 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/ATTMOS
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2d3ebe8a94fb1b446f3fb3833a0e0e330749289 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hw_compat_matrix-0.3.2-py3-none-any.whl.
File metadata
- Download URL: hw_compat_matrix-0.3.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853a9a241148d1b432fdff88cade317de46c15f5647aef530c3a065d5a97a10b
|
|
| MD5 |
0eb4ed5eed9b8239d4607f02e257ffc4
|
|
| BLAKE2b-256 |
2805c394dbc8d456c5bacb93dd476723ea324ff2f02221e704b4940426fc6e11
|
Provenance
The following attestation bundles were made for hw_compat_matrix-0.3.2-py3-none-any.whl:
Publisher:
publish.yml on ATTMOS/hw-compat-matrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hw_compat_matrix-0.3.2-py3-none-any.whl -
Subject digest:
853a9a241148d1b432fdff88cade317de46c15f5647aef530c3a065d5a97a10b - Sigstore transparency entry: 1237331470
- Sigstore integration time:
-
Permalink:
ATTMOS/hw-compat-matrix@d2d3ebe8a94fb1b446f3fb3833a0e0e330749289 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/ATTMOS
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2d3ebe8a94fb1b446f3fb3833a0e0e330749289 -
Trigger Event:
release
-
Statement type: