Skip to content

Commit ceda793

Browse files
rascaniclaude
andauthored
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

File tree

.ci/docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ esac
102102
TORCH_VERSION=$(cat ci_commit_pins/pytorch.txt)
103103
BUILD_DOCS=1
104104

105-
if [[ "${GCC_VERSION:-}" == "11" && -z "${SKIP_PYTORCH:-}" ]]; then
105+
if [[ -n "${GCC_VERSION:-}" && -z "${SKIP_PYTORCH:-}" ]]; then
106106
PYTORCH_BUILD_MAX_JOBS=6
107107
fi
108108

0 commit comments

Comments
 (0)