Merge pull request #1523 from borglab/fix-1445
commit
477998b658
|
@ -9,33 +9,14 @@ set -x -e
|
||||||
# install TBB with _debug.so files
|
# install TBB with _debug.so files
|
||||||
function install_tbb()
|
function install_tbb()
|
||||||
{
|
{
|
||||||
TBB_BASEURL=https://github.com/oneapi-src/oneTBB/releases/download
|
|
||||||
TBB_VERSION=4.4.5
|
|
||||||
TBB_DIR=tbb44_20160526oss
|
|
||||||
TBB_SAVEPATH="/tmp/tbb.tgz"
|
|
||||||
|
|
||||||
if [ "$(uname)" == "Linux" ]; then
|
if [ "$(uname)" == "Linux" ]; then
|
||||||
OS_SHORT="lin"
|
sudo apt-get -y install libtbb-dev
|
||||||
TBB_LIB_DIR="intel64/gcc4.4"
|
|
||||||
SUDO="sudo"
|
|
||||||
|
|
||||||
elif [ "$(uname)" == "Darwin" ]; then
|
elif [ "$(uname)" == "Darwin" ]; then
|
||||||
OS_SHORT="osx"
|
brew install tbb
|
||||||
TBB_LIB_DIR=""
|
|
||||||
SUDO=""
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget "${TBB_BASEURL}/${TBB_VERSION}/${TBB_DIR}_${OS_SHORT}.tgz" -O $TBB_SAVEPATH
|
|
||||||
tar -C /tmp -xf $TBB_SAVEPATH
|
|
||||||
|
|
||||||
TBBROOT=/tmp/$TBB_DIR
|
|
||||||
# Copy the needed files to the correct places.
|
|
||||||
# This works correctly for CI builds, instead of setting path variables.
|
|
||||||
# This is what Homebrew does to install TBB on Macs
|
|
||||||
$SUDO cp -R $TBBROOT/lib/$TBB_LIB_DIR/* /usr/local/lib/
|
|
||||||
$SUDO cp -R $TBBROOT/include/ /usr/local/include/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z ${PYTHON_VERSION+x} ]; then
|
if [ -z ${PYTHON_VERSION+x} ]; then
|
||||||
|
|
|
@ -8,33 +8,14 @@
|
||||||
# install TBB with _debug.so files
|
# install TBB with _debug.so files
|
||||||
function install_tbb()
|
function install_tbb()
|
||||||
{
|
{
|
||||||
TBB_BASEURL=https://github.com/oneapi-src/oneTBB/releases/download
|
|
||||||
TBB_VERSION=4.4.5
|
|
||||||
TBB_DIR=tbb44_20160526oss
|
|
||||||
TBB_SAVEPATH="/tmp/tbb.tgz"
|
|
||||||
|
|
||||||
if [ "$(uname)" == "Linux" ]; then
|
if [ "$(uname)" == "Linux" ]; then
|
||||||
OS_SHORT="lin"
|
sudo apt-get -y install libtbb-dev
|
||||||
TBB_LIB_DIR="intel64/gcc4.4"
|
|
||||||
SUDO="sudo"
|
|
||||||
|
|
||||||
elif [ "$(uname)" == "Darwin" ]; then
|
elif [ "$(uname)" == "Darwin" ]; then
|
||||||
OS_SHORT="osx"
|
brew install tbb
|
||||||
TBB_LIB_DIR=""
|
|
||||||
SUDO=""
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget "${TBB_BASEURL}/${TBB_VERSION}/${TBB_DIR}_${OS_SHORT}.tgz" -O $TBB_SAVEPATH
|
|
||||||
tar -C /tmp -xf $TBB_SAVEPATH
|
|
||||||
|
|
||||||
TBBROOT=/tmp/$TBB_DIR
|
|
||||||
# Copy the needed files to the correct places.
|
|
||||||
# This works correctly for CI builds, instead of setting path variables.
|
|
||||||
# This is what Homebrew does to install TBB on Macs
|
|
||||||
$SUDO cp -R $TBBROOT/lib/$TBB_LIB_DIR/* /usr/local/lib/
|
|
||||||
$SUDO cp -R $TBBROOT/include/ /usr/local/include/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# common tasks before either build or test
|
# common tasks before either build or test
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# Exclude tests that don't work
|
# Exclude tests that don't work
|
||||||
set (slam_excluded_tests
|
set (slam_excluded_tests
|
||||||
testSerialization.cpp
|
testSerialization.cpp
|
||||||
testSmartStereoProjectionFactorPP.cpp # unstable after PR #1442
|
|
||||||
)
|
)
|
||||||
|
|
||||||
gtsamAddTestsGlob(slam_unstable "test*.cpp" "${slam_excluded_tests}" "gtsam_unstable")
|
gtsamAddTestsGlob(slam_unstable "test*.cpp" "${slam_excluded_tests}" "gtsam_unstable")
|
||||||
|
|
Loading…
Reference in New Issue