[llvm] [CI][Github] Remove MAX_PARALLEL_*_JOBS Args from Windows Runs (PR #147770)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 08:39:47 PDT 2025


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/147770

This patch removes setting the MAX_PARLLEL_COMPILE_JOBS and MAX_PARALLEL_LINK_JOBS env variables in the windows runs. These were originally used to control the parallelism on the old infrastructure and we set them on the new infrastructure explicitly so that we could maintain both at the same time. Now it does not make sense to keep them explicitly set that we do not need to explicitly control the parallelism given the amount of RAM we have on the machines. This also adds a maintnenace cost as evidenced by the fact that these have been incorrect (64 instead of 32) for quite a while.

>From dd11978010de99219f136692df516d15679f6368 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 9 Jul 2025 15:36:20 +0000
Subject: [PATCH] [CI][Github] Remove MAX_PARALLEL_*_JOBS Args from Windows
 Runs

This patch removes setting the MAX_PARLLEL_COMPILE_JOBS and
MAX_PARALLEL_LINK_JOBS env variables in the windows runs. These were
originally used to control the parallelism on the old infrastructure and
we set them on the new infrastructure explicitly so that we could
maintain both at the same time. Now it does not make sense to keep them
explicitly set that we do not need to explicitly control the parallelism
given the amount of RAM we have on the machines. This also adds a
maintnenace cost as evidenced by the fact that these have been incorrect
(64 instead of 32) for quite a while.
---
 .ci/monolithic-windows.sh       | 4 +---
 .github/workflows/premerge.yaml | 2 --
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh
index c27111bf5aa10..176350fac604c 100755
--- a/.ci/monolithic-windows.sh
+++ b/.ci/monolithic-windows.sh
@@ -74,9 +74,7 @@ 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 LLVM_PARALLEL_COMPILE_JOBS=${MAX_PARALLEL_COMPILE_JOBS} \
-      -D LLVM_PARALLEL_LINK_JOBS=${MAX_PARALLEL_LINK_JOBS}
+      -D CMAKE_SHARED_LINKER_FLAGS="/MANIFEST:NO"
 
 echo "::endgroup::"
 echo "::group::ninja"
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 4435a3e905768..3b7751629564d 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -110,8 +110,6 @@ jobs:
         if: ${{ steps.vars.outputs.windows-projects != '' }}
         shell: cmd
         run: |
-          set MAX_PARALLEL_COMPILE_JOBS=64
-          set MAX_PARALLEL_LINK_JOBS=64
           call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
           bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}"
       - name: Upload Artifacts



More information about the llvm-commits mailing list