File: common.sh

package info (click to toggle)
pdal 1.8.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 203,324 kB
  • sloc: cpp: 501,008; sh: 11,840; python: 3,263; xml: 2,389; makefile: 603; sql: 26; perl: 19
file content (31 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (2)
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"