From 0bff81f0a9b6a29bd62e56338cc4231dfb1c804e Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 18 Oct 2022 19:34:38 +0200 Subject: [PATCH] TTK: on DB10, switch off CPU optimization as requested by A.Geay --- products/compil_scripts/TTK.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/products/compil_scripts/TTK.sh b/products/compil_scripts/TTK.sh index 649d1c1..d8b3b91 100755 --- a/products/compil_scripts/TTK.sh +++ b/products/compil_scripts/TTK.sh @@ -16,6 +16,19 @@ CMAKE_OPTIONS+=" -DTTK_BUILD_PARAVIEW_PLUGINS=ON" CMAKE_OPTIONS+=" -Dembree_DIR:PATH=${EMBREE_ROOT_DIR}/lib/cmake/embree-${EMBREE_VERSION}" # Embree CMake defines EMBREE_INCLUDE_DIRS but TTK uses EMBREE_INCUDE_DIR which is undefined. CMAKE_OPTIONS+=" -DEMBREE_INCLUDE_DIR=${EMBREE_ROOT_DIR}/include" + +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + +case $LINUX_DISTRIBUTION in + DB10) + # A.Geay (Sous debian10 sur nos VM de prod, on a pas mal de nos tests qui plantent avec des SIGILL) + echo "WARNING: switching off cpu optimization!" + CMAKE_OPTIONS+=" -DTTK_ENABLE_CPU_OPTIMIZATION=OFF" + ;; + *) + ;; +esac + echo echo "*** cmake" $CMAKE_OPTIONS rm -rf $BUILD_DIR -- 2.39.2