Skip to content

Commit

Permalink
Merge Pull Request #4659 from prwolfe/Trilinos/mem_2.1_core
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: move from 1.8G/core to 2.1
PR Author: prwolfe
  • Loading branch information
trilinos-autotester authored Mar 22, 2019
2 parents a83e7f3 + b5b4b38 commit 9760d85
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 9760d85

Please sign in to comment.