diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-02-26 21:52:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-02-26 21:52:10 +0400 |
commit | 1d20f2496ab489c98224375ba63f4a726e931edb (patch) | |
tree | ccf4d56f44a639c724b295f77ad6510715f6026f /extern/libmv/third_party/ceres/CMakeLists.txt | |
parent | 0f91a283d401df68e45ff8c9e18d3c9f2fe79d84 (diff) |
Use threaded cost function and jacobian computation
Also made it theraded linear solver, seems it makes
sense for iterative schur with inner iterations
enabled.
Use OpenMO's max therads called from bundler code
to detect how many threads to use. Could be changed
in a way that number of threads is passing in options
from blender side in the future.
Also removed redundant V3D definition from compiler's
flags.
Diffstat (limited to 'extern/libmv/third_party/ceres/CMakeLists.txt')
-rw-r--r-- | extern/libmv/third_party/ceres/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extern/libmv/third_party/ceres/CMakeLists.txt b/extern/libmv/third_party/ceres/CMakeLists.txt index 5e58c2964ce..b71fe1d5cdb 100644 --- a/extern/libmv/third_party/ceres/CMakeLists.txt +++ b/extern/libmv/third_party/ceres/CMakeLists.txt @@ -261,8 +261,15 @@ add_definitions( -DCERES_NO_CXSPARSE -DCERES_NO_PROTOCOL_BUFFERS -DCERES_RESTRICT_SCHUR_SPECIALIZATION + -DCERES_HAVE_RWLOCK ) +if(WITH_OPENMP) + add_definitions( + -DCERES_USE_OPENMP + ) +endif() + if(MSVC10) add_definitions( -D"CERES_HASH_NAMESPACE_START=namespace std {" |