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 59193feCopy full SHA for 59193fe
.github/workflows/build-presets.yml
@@ -27,12 +27,12 @@ jobs:
27
runner: macos-latest-xlarge
28
python-version: 3.12
29
submodules: recursive
30
- timeout: 900
+ timeout: 90
31
script: |
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