Sketcher: Disable Eigen multithread
=================================== Eigen currently only provides multithread for matrix products. It has been reported that it is even slightly slower than single-thread. Therefore, temporarely the code is commented out. If Eigen ever implements multithread for QR decomposition, then it will make a lot of sense to enable this.
This commit is contained in:
parent
7f442c5a3f
commit
efb08cd11c
|
@ -4,11 +4,12 @@ else(MSVC)
|
|||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
find_package(OpenMP)
|
||||
if (OPENMP_FOUND)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
endif()
|
||||
# Uncomment this code if you want to try Eigen's multithread
|
||||
#find_package(OpenMP)
|
||||
#if (OPENMP_FOUND)
|
||||
# set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||||
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
#endif()
|
||||
|
||||
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_NO_DEBUG") # Necessary to avoid SparseQR crash with Eigen 3.2 due to a wrong assertion
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user