Commit ceda793
Cap PyTorch build parallelism for all GCC docker images (#20123)
### Summary
The gcc14 docker build was intermittently timing out on linux.4xlarge
runners because it built PyTorch from source with unlimited parallelism,
unlike gcc11 which capped MAX_JOBS=6. Generalize the guard to all GCC
variants so gcc14, gcc15, and future additions get the same protection.
Images that set SKIP_PYTORCH (gcc9-nopytorch, cuda-windows) are
unaffected because the existing SKIP_PYTORCH guard excludes them.
Fixes #19881
### Test plan
CI
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4229704 commit ceda793
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments