cuda
runtime_error
ai_generated
true
RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED
ID: cuda/cublas-status-not-initialized
82%Fix Rate
85%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 12 | active | — | — | — |
Root Cause
cuBLAS handle creation failed. Usually caused by GPU memory exhaustion or CUDA context corruption.
genericWorkarounds
-
88% success Reduce batch size or model size to free GPU memory
cuBLAS init fails when GPU memory is nearly full; reduce batch_size or use gradient checkpointing
-
85% success Ensure no other process is consuming GPU memory
nvidia-smi # check for zombie processes holding GPU memory
-
80% success Destroy and recreate CUDA context if running in a long-lived process
torch.cuda.empty_cache()
Dead Ends
Common approaches that don't work:
-
Reinstall cuBLAS libraries
82% fail
cuBLAS ships with CUDA toolkit and PyTorch; reinstalling libraries does not fix runtime context issues
-
Downgrade CUDA version
78% fail
This is a runtime state error, not a version compatibility issue
Error Chain
Preceded by:
Frequently confused with: