geoneric/fern

Make it possible to manipulate grain size of work done by threads

Opened this issue · 0 comments

By default, the grainsize is nr_cells / nr_worker_threads. This results is too large tasks for the worker_threads. Depending on the algorithm, some workers might be finished while others have lots of work remaining. Smaller grains will result in the work being more evenly distributed over the workers.