Commit 079e7e9
[ML] Use optimal test parallelism based on CPU count
Each test suite spawns ctest --parallel <all_cpus> internally, so
running all suites concurrently causes resource contention. Limit
the number of concurrent suites to ceil(nproc/3) on Unix and 2 on
Windows, matching empirically determined optimal values from
cross-platform benchmarking (see PR elastic#2900).
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 5956753 commit 079e7e9
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
226 | | - | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
0 commit comments