Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move from 1.8G/core to 2.1 #4659

Merged
merged 1 commit into from
Mar 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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