Blender Git Loki
Git Commits -> Revision c4e42d7
Revision c4e42d7 by Sergey Sharybin (master) January 9, 2018, 15:09 (GMT) |
Task scheduler: Add minimum number of iterations per thread in parallel range The idea is to support following: allow doing parallel for on a small range, each iteration of which takes lots of compute power, but limit such range to a subset of threads. For example, on a machine with 44 threads we can occupy 4 threads to handle range of 64 elements, 16 elements per thread, where each block of 16 elements is very complex to compute. The idea should be to use this setting instead of global use_threading flag, which is only based on size of array. Proper use of the new flag will improve threadability. This commit only contains internal task scheduler changes, this setting is not used yet by any areas. |
Commit Details:
Full Hash: c4e42d70a4949352f1233574cfc2da30c097439d
Parent Commit: 3144f05
Lines Changed: +24, -1