Blender Git Commit Log

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

2 Modified Paths:

/source/blender/blenlib/BLI_task.h (+16, -0) (Diff)
/source/blender/blenlib/intern/task.c (+8, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021