ECC
cuda
hardware_error
ai_generated
partial
CUDA error: an illegal memory access was encountered due to ECC uncorrectable error
ID: cuda/ecc-uncorrectable
60%Fix Rate
80%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 12 | active | — | — | — |
Root Cause
GPU memory has an uncorrectable ECC (Error Correcting Code) error indicating failing DRAM cells. This is a hardware defect. The GPU retires bad memory pages but if too many fail, the GPU becomes unreliable. Common in data centers after extended use.
genericWorkarounds
-
50% success Reset the GPU and check if errors persist: nvidia-smi -r
nvidia-smi -r -i <gpu_id> to reset. Then check: nvidia-smi -q -d ECC for pending/retired pages.
-
95% success Replace the GPU if ECC error count is high and growing
Check nvidia-smi -q -d ECC. If retired_pages > 10 or volatile_uncorrectable > 0 persistently, GPU needs replacement.
-
85% success Move workload to a different GPU on the same machine
CUDA_VISIBLE_DEVICES=<other_gpu_id> python train.py
Dead Ends
Common approaches that don't work:
-
Disable ECC to hide the errors: nvidia-smi -e 0
85% fail
Disabling ECC does not fix the bad memory; it just stops detecting errors, leading to silent data corruption in computations
-
Reduce GPU clock speed to work around memory errors
80% fail
ECC errors are from physical memory defects, not timing issues; underclocking does not fix bad DRAM cells
Error Chain
Leads to:
Preceded by:
Frequently confused with: