Skip to content

Commit

Permalink
Disable eigen vectorization by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
endJunction committed Aug 21, 2017
1 parent 5f69185 commit 9c6522b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -88,6 +88,7 @@ option(OGS_USE_PETSC "Use PETSc routines" OFF)
option(OGS_USE_EIGEN "Use Eigen linear solver" ON)
option(OGS_USE_EIGEN_UNSUPPORTED "Use Eigen unsupported modules" ON)
option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF)
option(EIGEN_DONT_VECTORIZE "Disables explicit vectorization when defined." ON)

set(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES "Default" CACHE STRING "Use dynamically allocated shape matrices")
set_property(CACHE OGS_EIGEN_DYNAMIC_SHAPE_MATRICES
Expand Down Expand Up @@ -191,6 +192,11 @@ endif()
if (EIGEN_NO_DEBUG)
add_definitions(-DEIGEN_NO_DEBUG)
endif()

if (EIGEN_DONT_VECTORIZE)
add_definitions(-DEIGEN_DONT_VECTORIZE)
endif()

if(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES_INTERNAL)
add_definitions(-DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES)
endif()
Expand Down

0 comments on commit 9c6522b

Please sign in to comment.