mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
dc5ea0ea4d
This is in preparation for adding support for a c++11 based parallel for implementation. The parallel for abstraction does not have the ability to constrain the total number of threads in nested for loops. This is solved by distributing the number of threads evenly between the nested for loops. Adds a TODO to consolidate the next for loops into a single loop that can be properly split between threads. Tested by building with TBB and running tests. Change-Id: I546973b9a4d19b9cdd53caff55d1c80bac8ea953