We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9774f1e commit 3099c54Copy full SHA for 3099c54
.github/workflows/build-presets.yml
@@ -32,7 +32,7 @@ jobs:
32
set -eux
33
${CONDA_RUN} ./install_requirements.sh > /dev/null
34
${CONDA_RUN} cmake --preset ${{ matrix.preset }}
35
- ${CONDA_RUN} cmake --build cmake-out -j16
+ ${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 ))
36
37
linux:
38
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
@@ -65,4 +65,4 @@ jobs:
65
66
./install_requirements.sh > /dev/null
67
cmake --preset ${{ matrix.preset }}
68
- cmake --build cmake-out --parallel
+ cmake --build cmake-out -j$(( $(nproc) - 1 ))
0 commit comments