Skip to content

Commit

Permalink
Fixing parallel buildbot for HPX builds
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 26, 2020
1 parent 5e3198f commit 1e3c4f9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions etc/buildbot_hpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@ sanitize=""
ncores=2
osname=`uname`
if [ ${osname} == "Darwin" ]; then
ncores=`sysctl -n hw.ncpu`
export CC=`which clang`
export CXX=`which clang++`
#cmake_generator="-G Xcode"
ncores=`sysctl -n hw.ncpu`
export CC=`which clang`
export CXX=`which clang++`
#cmake_generator="-G Xcode"
else
ncores=`nproc --all`
ncores=`expr $ncores / 2`
# Get the true number of total cores, not threads.
ncoresper=`lscpu | grep -E '^Core' | awk '{print $NF}'`
nsockets=`lscpu | grep -E '^Socket' | awk '{print $NF}'`
let ncores=$ncoresper*$nsockets
fi


echo "Num parallel builds: $ncores"

set -e # exit on error
Expand Down

0 comments on commit 1e3c4f9

Please sign in to comment.