From 292454942e6be480dad419acbf37c1718a202ba2 Mon Sep 17 00:00:00 2001 From: "Wang, Chuanqi" Date: Tue, 21 Oct 2025 18:28:23 +0000 Subject: [PATCH] [CD] Introduce windows.12xlarge runners for CD Windows build (#165287) Follows https://github.com/pytorch/test-infra/pull/7174. Windows CD build time cost comparison as below |Runner|cpu|cuda|xpu| |-|-|-|-| |windows.4xlarge|1.5h| 4.0h| 5.5h| |windows.12xlarge|0.5h|1.5h|2.5h| Fixes #162962 Pull Request resolved: https://github.com/pytorch/pytorch/pull/165287 Approved by: https://github.com/zxiiro, https://github.com/malfet, https://github.com/seemethere --- .circleci/scripts/binary_populate_env.sh | 9 ++- .../windows_binary_build_workflow.yml.j2 | 4 +- ...-windows-binary-libtorch-debug-nightly.yml | 8 +-- ...indows-binary-libtorch-release-nightly.yml | 8 +-- ...generated-windows-binary-wheel-nightly.yml | 70 +++++++++---------- 5 files changed, 52 insertions(+), 47 deletions(-) diff --git a/.circleci/scripts/binary_populate_env.sh b/.circleci/scripts/binary_populate_env.sh index f12a3ac0751..11f96785799 100755 --- a/.circleci/scripts/binary_populate_env.sh +++ b/.circleci/scripts/binary_populate_env.sh @@ -163,8 +163,13 @@ if [[ "$(uname)" != Darwin ]]; then MEMORY_LIMIT_MAX_JOBS=12 NUM_CPUS=$(( $(nproc) - 2 )) - # Defaults here for **binary** linux builds so they can be changed in one place - export MAX_JOBS=${MAX_JOBS:-$(( ${NUM_CPUS} > ${MEMORY_LIMIT_MAX_JOBS} ? ${MEMORY_LIMIT_MAX_JOBS} : ${NUM_CPUS} ))} + if [[ "$(uname)" == Linux ]]; then + # Defaults here for **binary** linux builds so they can be changed in one place + export MAX_JOBS=${MAX_JOBS:-$(( ${NUM_CPUS} > ${MEMORY_LIMIT_MAX_JOBS} ? ${MEMORY_LIMIT_MAX_JOBS} : ${NUM_CPUS} ))} + else + # For other builds + export MAX_JOBS=${NUM_CPUS} + fi cat >>"$envfile" <