onnxruntime/tools/ci_build/github
Scott McKay 580ee20dfc
Tweak Windows build parallelization settings (#19664)
### Description
<!-- Describe your changes. -->
Use UseMultiToolTask and limit the number of cl.exe instances running. 

MultiToolTask info:
https://devblogs.microsoft.com/cppblog/improved-parallelism-in-msbuild/

Info on why limiting CL_MPCount can help:
https://github.com/Microsoft/checkedc-clang/wiki/Parallel-builds-of-clang-on-Windows

The current CIs have 4 cores (both physical and logical). Hardcoded the
GPU build in win-ci.yml to use CL_MPCount of 2 as that seems to work
fine. Can adjust if needed to base it on the actual number of cores or
to use build.py to build.

Caveat: I've run about 16 builds and haven't seen a slow build yet, but
as the root cause of the slow builds isn't really known this isn't
guaranteed to be a fix.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Try and prevent super slow GPU builds by reducing number of tasks
potentially running in parallel.
2024-02-27 08:56:16 -08:00
..
android Add LeakyRelu to list of NNAPI operators (#18880) 2023-12-20 14:44:31 +10:00
apple Retry flaky XCode iOS UI tests if we get a known error (#19639) 2024-02-27 09:31:32 +10:00
azure-pipelines Tweak Windows build parallelization settings (#19664) 2024-02-27 08:56:16 -08:00
js Add MacOS build to ORT C Pod (#18550) 2023-11-28 10:11:53 -08:00
linux Re-add testing removed by mistake. (#19647) 2024-02-27 08:46:29 -08:00
pai fix rocm ci pipeline (#19525) 2024-02-15 00:02:08 -08:00
windows Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
Doxyfile_csharp.cfg [C#] Rename unreleased API, add utilities (#16806) 2023-08-02 10:06:42 -07:00