warranty

warranty reads the memory-error record an NVIDIA GPU keeps about itself and returns it in full, and is loadable through kernels. A GPU with ECC counts corrected and uncorrected errors by location, remaps failing DRAM rows into spare capacity, and records when a bank runs out of spares. nvidia-smi shows only part of this. The package reads all of it through NVML, scrubs a region of memory for a current measurement, classifies the card, and formats the result as an RMA ticket with a digest, or as an RMA request letter addressed to NVIDIA's chief executive.

Usage

from kernels import get_kernel

w = get_kernel("phanerozoic/warranty", version=1, trust_remote_code=True)

rep = w.report(0)            # counters, remap state, 2 GiB scrub, verdict
rep["verdict"]               # "healthy" ... "remap_exhausted"
print(w.claim(rep))          # ticket text, SHA-256 over the report
print(w.email(rep, sender="Your Name"))
python -m warranty.rma_email --sender "Your Name"        # prints the letter
python -m warranty.rma_email --json                      # prints the report

It reads counters and returns text. It does not write to the device and does not send anything. pynvml (nvidia-ml-py) is required; torch is used for the scrub when present.

API

Symbol Purpose
report(index=0, scrub_gib=2.0) identity (name, serial, UUID, VBIOS, driver, PCI, ECC mode), error counters by scope, kind and location, remapped rows and the spare-row histogram, retired pages where the part supports them, the scrub result, and the verdict
verdict(report) one of healthy, degrading, remap_pending, uncorrectable, remap_exhausted, worst condition first
claim(report) plain-text RMA ticket ending in a SHA-256 over the canonical JSON of the report
email(report, sender=None, to=..., address=None) RMA request letter with the ticket attached
digest(report), verify(report, sha) the digest and its check

Method

Counters come from nvmlDeviceGetMemoryErrorCounter over both scopes (volatile since the last reset, aggregate over the part's life), both kinds (corrected, uncorrected) and every location NVML defines; zero counts are omitted. Row remapping comes from nvmlDeviceGetRemappedRows (rows remapped for correctable and uncorrectable causes, whether a remap awaits a reset, and whether a remap has failed) and nvmlDeviceGetRowRemapperHistogram (banks grouped by how many spare rows remain). Parts that retire pages instead of remapping rows report through nvmlDeviceGetRetiredPages.

The scrub fills a region of device memory with a seeded pattern, reads it back, and counts mismatches, over three passes with the pattern inverted between them. The region is the smaller of scrub_gib and half of free memory.

The verdict is ordered by severity. A remap failure or a bank with no spare rows is remap_exhausted; any uncorrected count or scrub mismatch is uncorrectable; a remap or page retirement waiting on reset is remap_pending; any corrected count or correctable remap is degrading; otherwise healthy.

The digest is SHA-256 over the report serialized with sorted keys and no whitespace. claim and email embed it, so the text can be checked against the report.

Correctness

tests/test_warranty.py runs a fixed sample record through every verdict transition, checks that a scrub mismatch alone yields uncorrectable, that the digest in claim verifies and stops verifying once a counter is edited, that email carries the headers, salutation, counts, remap-failure text, digest, signature and attached ticket, and, when an NVML device is present, that report reads it and its digest verifies.

Requirements and limits

  • pynvml (nvidia-ml-py). Without it, every entry point raises with the install hint.
  • ECC counters exist only on parts with ECC enabled; consumer cards without ECC report empty counters and the verdict rests on the scrub.
  • Row remapping is Ampere and later; page retirement is Volta and Turing. Each is reported when the part supports it and omitted otherwise.
  • The scrub needs torch with CUDA and runs on the device with the same index; pass scrub_gib=0 to skip it.
  • The letter is text. Sending it is up to you.

References

NVIDIA Management Library (NVML) API Reference, Device Queries: memory error counters, remapped rows, row remapper histogram, retired pages; NVIDIA GPU Memory Error Management (application note).

License

Apache-2.0.

Downloads last month
-
apache-2.0
Supported hardwares new
CUDA
all
GPU
B300
288GB
NVIDIA SXM
B200
192GB
NVIDIA SXM
H200
141GB
NVIDIA SXM
H100
80GB
GPU
H800
80GB
GPU
H20
96GB
GPU
L40s
48GB
GPU
L40
48GB
GPU
L20
48GB
GPU
L4
24GB
DGX Spark
GB10
128GB
GPU
RTX PRO 6000 WS
96GB
GPU
RTX PRO 6000 Max-Q
96GB
GPU
RTX PRO 5000
48GB
GPU
RTX PRO 4500 WS
32GB
GPU
RTX PRO 4000
24GB
GPU
RTX PRO 4000 SFF
24GB
GPU
RTX PRO 2000
16GB
GPU
RTX 6000 Ada
48GB
GPU
RTX 5880 Ada
48GB
RTX
RTX 5000 Ada
32GB
GPU
RTX 4500 Ada
24GB
RTX
RTX 4000 Ada
20GB
RTX
RTX 4000 SFF Ada
20GB
GPU
RTX 3500 Ada Mobile
12GB
GPU
RTX 2000 Ada
16GB
GPU
RTX A6000
48GB
GPU
RTX A5000
8GB
GPU
RTX A5000 Max-Q
16GB
GPU
RTX A5000 Mobile
16GB
GPU
RTX A4000
16GB
GPU
RTX A4000 Max-Q
8GB
GPU
RTX A4000 Mobile
8GB
GPU
RTX A3000 Mobile
6GB
GPU
RTX A2000
6GB
GPU
RTX A2000 Embedded
4GB
GPU
RTX A2000 Max-Q
4GB
GPU
RTX A2000 Mobile
4GB
GPU
A800
40GB
GPU
A100
80GB
GPU
A40
48GB
GPU
A30
24GB
GPU
A10
24GB
GPU
A2
16GB
RTX
RTX 5090
32GB
RTX
RTX 5090 D
32GB
RTX
RTX 5090 Mobile
24GB
RTX
RTX 5080
16GB
RTX
RTX 5080 Mobile
16GB
RTX
RTX 5070
12GB
RTX
RTX 5070 Mobile
8GB
RTX
RTX 5070 Ti
16GB
RTX
RTX 5070 Ti Mobile
12GB
RTX
RTX 5060 Ti
16GB
RTX
RTX 5060
8GB
RTX
RTX 5060 Mobile
8GB
RTX
RTX 5050
8GB
RTX
RTX 5050 Mobile
8GB
RTX
RTX 4090
24GB
RTX
RTX 4090D
24GB
RTX
RTX 4090 Mobile
16GB
RTX
RTX 4080 SUPER
16GB
RTX
RTX 4080
16GB
RTX
RTX 4080 Mobile
12GB
RTX
RTX 4070
12GB
RTX
RTX 4070 Mobile
8GB
RTX
RTX 4070 Ti
12GB
RTX
RTX 4070 Super
12GB
RTX
RTX 4070 Ti Super
16GB
RTX
RTX 4060
8GB
RTX
RTX 4060 Ti
8GB
RTX
RTX 4090 Laptop
16GB
RTX
RTX 4080 Laptop
12GB
RTX
RTX 4070 Laptop
8GB
RTX
RTX 4060 Laptop
8GB
RTX
RTX 4050 Laptop
6GB
RTX
RTX 3090
24GB
RTX
RTX 3090 Ti
24GB
RTX
RTX 3080
12GB
RTX
RTX 3080 Ti
12GB
RTX
RTX 3080 Mobile
16GB
RTX
RTX 3070
8GB
RTX
RTX 3070 Ti
8GB
RTX
RTX 3070 Ti Mobile
8GB
RTX
RTX 3060 Ti
8GB
RTX
RTX 3060
12GB
GPU
RTX 2080 Ti
11GB
GPU
RTX 2080
8GB
GPU
RTX 2070
8GB
GPU
RTX 2070 SUPER Mobile
8GB
GPU
RTX 2070 SUPER
8GB
RTX
RTX 3060 Mobile
6GB
RTX
RTX 3050 Mobile
4GB
GPU
RTX 2060
6GB
GPU
RTX 2060 12GB
12GB
GPU
RTX 2060 Mobile
6GB
GPU
RTX 2050 Mobile
4GB
GPU
GTX 1080 Ti
11GB
GPU
GTX 1080
8GB
GPU
GTX 1070 Ti
8GB
GPU
GTX 1070
8GB
GPU
GTX 1060
3GB
GPU
GTX 1050 Ti
4GB
GPU
RTX Titan
24GB
GPU
GTX 1660
6GB
GPU
GTX 1650 Mobile
4GB
NVIDIA T4
T4
16GB
GPU
T10
16GB
GPU
V100
32GB
GPU
Quadro P6000
24GB
GPU
P40
24GB
GPU
P100
16GB
Jetson
Jetson AGX Orin 64GB
64GB
Jetson
Jetson AGX Orin 32GB
32GB
Jetson
Jetson Orin NX 16GB
16GB
Jetson
Jetson Orin NX 8GB
8GB
Jetson
Jetson Orin Nano 8GB
8GB
Jetson
Jetson Orin Nano 4GB
4GB
Jetson
Jetson AGX Xavier
32GB
Jetson
Jetson Xavier NX
8GB
Jetson
Jetson TX2
4GB
Jetson
Jetson Nano
4GB
Kernel Builder
19aaa64