Hi
We have an interesting issue when using CERES multi-threaded (OpenMP), by setting the options "num_threads" and "num_linear_solver_threads" to some value greater than one.
When using a statically built Ceres 1.12, it works fine on Machine A (the one Ceres was built on). But when we use the static lib on Machine B it only uses one thread. Linking and compiling works fine though.
Both machines A and B are identical Lenovo ThinkStations with Ubuntu 16.04 LTS.
When we now try to build Ceres 1.12 or 1.13 on machine B as static lib, it works neither on A nor B with multiple threads. Again, compiling and linking works fine. OpenMP is also correctly found by the Ceres CMake script.
So it would appear that there is an issue with the build environment on machine B. However, there are no complaints by CMake that OpenMP is not found. It builds perfectly fine, without complaints.
Also, other executables work fine with OpenMP. Only Ceres doesn't use multiple threads...
Any ideas what could be wrong? We are running out of ideas :-)
Thanks!
Best,
Manuel
P.S.: we use ceres::SPARSE_SCHUR and ceres::SUITE_SPARSE