osrm-backend/plugins
Daniel J. Hofmann 9231335eef Use Intel TBB's parallel_sort even for nested parallelism.
TBB has a global task scheduler (that's one of the reason TBB is not
linked statically but dyanmically instead). This allows control over all
running threads, enabling us to use nested parallelism and the scheduler
doing all the task allocation itself.

That is, nested parallel execution such as in

    parallel_for(seq, [](const auto& rng){
      parallel_sort(rng);
    });

is no problem at all, as the scheduler still claims control over the
global environment.

Therefore, use `parallel_sort` Range overload where possible.

References:

- https://www.threadingbuildingblocks.org/docs/help/hh_goto.htm#reference/algorithms.htm
- https://www.threadingbuildingblocks.org/docs/help/hh_goto.htm#reference/algorithms/parallel_sort_func.htm
- https://www.threadingbuildingblocks.org/docs/help/hh_goto.htm#reference/task_scheduler.htm
- https://www.threadingbuildingblocks.org/docs/help/hh_goto.htm#reference/task_scheduler/task_scheduler_init_cls.htm
- https://www.threadingbuildingblocks.org/docs/help/hh_goto.htm#tbb_userguide/Initializing_and_Terminating_the_Library.htm
2015-09-28 20:26:03 +02:00
..
distance_table.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
hello_world.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
locate.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
match.hpp Use Intel TBB's parallel_sort even for nested parallelism. 2015-09-28 20:26:03 +02:00
nearest.hpp - output only get escaped when actually output. Better seperation of functionality 2015-02-26 10:11:33 +01:00
plugin_base.hpp reorder includes, fixes style regression from commit fdf2e59. 2015-02-26 16:09:48 +01:00
timestamp.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
trip.hpp add missing include and clang-format 2015-09-01 15:20:35 +02:00
viaroute.hpp Only swap nodes if it contains a big component 2015-08-06 13:20:29 +02:00