Skip to content

Commit

Permalink
Reduce the amount of threads used for parallel make.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcojean committed Dec 11, 2019
1 parent 92291c8 commit 8478d9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ stages:
EXTRA_CMAKE_FLAGS: ""

.before_script_template: &default_before_script
- export OMP_NUM_THREADS=4
- export NUM_CORES=$(grep "core id" /proc/cpuinfo | sort -u | wc -l)
- export NUM_CORES=$((NUM_CORES/10))
- export OMP_NUM_THREADS=${NUM_CORES}
- export CUDA_VISIBLE_DEVICES=0

.before_script_git_template: &git_before_script
Expand All @@ -54,7 +56,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
- make -j$(grep "core id" /proc/cpuinfo | sort -u | wc -l)
- make -j${NUM_CORES}
- |
(( $(ctest -N | tail -1 | sed 's/Total Tests: //') != 0 )) || exit 1
- ctest -V
Expand Down

0 comments on commit 8478d9a

Please sign in to comment.