11 #include <tbb/enumerable_thread_specific.h>
12 #include <tbb/parallel_for.h>
13 #include <tbb/parallel_for_each.h>
14 #include <tbb/task_arena.h>
15 #include <tbb/task_group.h>
17 #if TBB_INTERFACE_VERSION_MAJOR >= 10
18 # define WITH_TBB_GLOBAL_CONTROL
19 # define TBB_PREVIEW_GLOBAL_CONTROL 1
20 # include <tbb/global_control.h>
25 using tbb::blocked_range;
26 using tbb::enumerable_thread_specific;
32 #if TBB_INTERFACE_VERSION_MAJOR >= 12
33 tbb::task_group_context *ctx = tbb::task::current_context();
38 ctx->capture_fp_settings();
44 #if TBB_INTERFACE_VERSION_MAJOR >= 12
45 tbb::task_group_context *ctx = tbb::task::current_context();
47 ctx->cancel_group_execution();
#define CCL_NAMESPACE_END
void parallel_for(IndexRange range, int64_t grain_size, const Function &function)
void parallel_for_each(Range &range, const Function &function)
static void thread_capture_fp_settings()
static void parallel_for_cancel()