1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/bin/bash
# if [[ "$TRAVIS" != "true" ]] ; then
# echo "Running this script makes no sense outside of travis-ci.org"
# exit 1
# fi
# Functions
tmstamp() { echo -n "[$(date '+%H:%M:%S')]" ; }
# Environment
NUMTHREADS=2
# if [[ -f /sys/devices/system/cpu/online ]]; then
# if [[ "$CXX" == "g++" ]]; then
# factor = 1000
# else
# factor = 1500
# fi
# # Calculates 1.5 times physical threads
# NUMTHREADS=$(( ( $(cut -f 2 -d '-' /sys/devices/system/cpu/online) + 1 ) * $factor / 1000 ))
# fi
echo "NUMTHREADS = $NUMTHREADS"
#NUMTHREADS=1 # disable MP
export NUMTHREADS
# pdal_test segfaults when built against external g++-built boost,
# and I haven't found a good boost package built with clang yet
export PDAL_CMAKE_GENERATOR="Unix Makefiles"
# export PDAL_CMAKE_GENERATOR="Unix Makefiles"
|