]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
TTK: on DB10, switch off CPU optimization as requested by A.Geay
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 18 Oct 2022 17:34:38 +0000 (19:34 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 18 Oct 2022 17:34:38 +0000 (19:34 +0200)
products/compil_scripts/TTK.sh

index 649d1c1c43574f7eb9189c79089ad8255c0d9d28..d8b3b9103843c846b33fc0fe728bfab0c89653ea 100755 (executable)
@@ -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