Skip to content

Commit

Permalink
avoid overloading the CI system
Browse files Browse the repository at this point in the history
This adds the -l parameter to ninja, which limits it to single-core
execution unless the load-average is below the number of cores.
  • Loading branch information
upsj committed May 19, 2020
1 parent 269bf95 commit ba070ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ stages:
-DGINKGO_BUILD_OMP=${BUILD_OMP} -DGINKGO_BUILD_CUDA=${BUILD_CUDA}
-DGINKGO_BUILD_HIP=${BUILD_HIP}
-DGINKGO_BUILD_TESTS=ON -DGINKGO_BUILD_EXAMPLES=ON
- ninja -j${NUM_CORES}
- ninja -j${NUM_CORES} -l `nproc`
dependencies: []
except:
- schedules
Expand All @@ -83,7 +83,7 @@ stages:
-DGINKGO_BUILD_OMP=${BUILD_OMP} -DGINKGO_BUILD_CUDA=${BUILD_CUDA}
-DGINKGO_BUILD_HIP=${BUILD_HIP}
-DGINKGO_BUILD_TESTS=ON -DGINKGO_BUILD_EXAMPLES=ON
- ninja -j${NUM_CORES} install
- ninja -j${NUM_CORES} install -l `nproc`
- |
(( $(ctest -N | tail -1 | sed 's/Total Tests: //') != 0 )) || exit 1
- ctest -V
Expand Down

0 comments on commit ba070ad

Please sign in to comment.