Skip to content

Commit

Permalink
move from 1.8G/core to 2.1
Browse files Browse the repository at this point in the history
This is in response to several MueLu build failures
on full builds. Since this likely will relieve some
swapping it should help time on full builds or be a
wash. Might make small/medium builds a bit slower.
  • Loading branch information
prwolfe committed Mar 19, 2019
1 parent a85d2a7 commit b5b4b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/std/PullRequestLinuxDriver-Test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,11 @@ weight=${JENKINS_JOB_WEIGHT:-29}
n_cpu=$(lscpu | grep "^CPU(s):" | cut -d" " -f17)
n_K=$(cat /proc/meminfo | grep MemTotal | cut -d" " -f8)
let n_G=$n_K/1024000
# this is aimed at keeping approximately 1.8G per core so we don't bottleneck
# this is aimed at keeping approximately 2.1G per core so we don't bottleneck
## weight - the next bit works because the shell is only doing integer arithmetic
let n_jobs=${n_cpu}/${weight}
# using bc to get floating point input and integer output
parallel_level=$(echo "$n_G/( 1.8*$n_jobs )" | bc )
parallel_level=$(echo "$n_G/( 2.1*$n_jobs )" | bc )

if [ ${parallel_level} -gt ${weight} ]; then
parallel_level=${weight}
Expand Down

0 comments on commit b5b4b38

Please sign in to comment.