Skip to content

Replace deprecated tbb::task_scheduler_init with tbb::task_arena

The Initialize SMPTools TBB method for setting the number of threads had to be called before any other parallel operation and could only be set once. As tbb:task_scheduler_init was used in this method and is now deprecated, it is replace by tbb:task_arena. This new version let the user set the number of threads at anytime.

I did some Benchmarks before and after the changes on few .vtu datasets with 1, 2, 4 and 8 thread, and did not seems to affect runtime performances. (I used the vtkElevationFilter for the tests (500 executions))

@charles.gueunet

FYI: @will.schroeder @ben.boeckel

Please review: @mwestphal

Edited by Timothée Couble

Merge request reports