[llvm] [LIT] Workaround the 60 processed limit on Windows (PR #157759)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 07:04:05 PDT 2025
================
@@ -7,6 +7,14 @@
import lit.util
import lit.worker
+# Windows has a limit of 60 workers per pool.
+# This is defined in the multiprocessing module implementation.
+# See: https://github.com/python/cpython/blob/6bc65c30ff1fd0b581a2c93416496fc720bc442c/Lib/concurrent/futures/process.py#L669-L672
+WINDOWS_MAX_WORKERS_PER_POOL = 60
+
+
+def _ceilDiv(a, b):
+ return (a + b - 1) // b
----------------
boomanaiden154 wrote:
Is there a reason to prefer this over `int(math.ceil(a /b))`?
https://github.com/llvm/llvm-project/pull/157759
More information about the llvm-commits
mailing list