[llvm] [ci] limit parallel windows compile jobs to 24 (PR #93329)

Lucile Rose Nihlen via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 10:59:40 PDT 2024


https://github.com/lnihlen created https://github.com/llvm/llvm-project/pull/93329

This is an experiment to see if we can prevent some of the compiler OOMs happening without unduly impacting the Windows build latency.

>From 5f07f44f2d3d686603fc3293815b99089474fb72 Mon Sep 17 00:00:00 2001
From: Lucile Nihlen <luci.the.rose at gmail.com>
Date: Fri, 24 May 2024 17:55:49 +0000
Subject: [PATCH] [ci] limit parallel windows compile jobs to 24

---
 .ci/monolithic-windows.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh
index 4fd88ea81c84a..d31a913826d7e 100755
--- a/.ci/monolithic-windows.sh
+++ b/.ci/monolithic-windows.sh
@@ -44,6 +44,8 @@ pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
 # see https://github.com/llvm/llvm-project/pull/82393 and
 # https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
 # for further information.
+# We limit the number of parallel compile jobs to 24 control memory
+# consumption and improve build reliability.
 cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
       -D LLVM_ENABLE_PROJECTS="${projects}" \
       -G Ninja \
@@ -58,7 +60,9 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
       -D MLIR_ENABLE_BINDINGS_PYTHON=ON \
       -D CMAKE_EXE_LINKER_FLAGS="/MANIFEST:NO" \
       -D CMAKE_MODULE_LINKER_FLAGS="/MANIFEST:NO" \
-      -D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO"
+      -D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO" \
+      -D LLVM_PARALLEL_COMPILE_JOBS=24
+
 
 echo "--- ninja"
 # Targets are not escaped as they are passed as separate arguments.



More information about the llvm-commits mailing list