pytorch
runtime_error
ai_generated
true
RuntimeError: DDP initialization failed: NCCL error
ID: pytorch/ddp-init-error
78%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
Distributed Data Parallel initialization failed.
genericWorkarounds
-
90% success Set MASTER_ADDR, MASTER_PORT and verify NCCL connectivity
-
88% success Use torchrun for proper process group initialization
Dead Ends
Common approaches that don't work:
-
Use DataParallel instead of DDP
72% fail
Slower, GIL-bound
-
Run on single GPU
68% fail
Loses multi-GPU speedup