13#include <tbb/blocked_range2d.h>
14#include <tbb/blocked_range3d.h>
15#include <tbb/enumerable_thread_specific.h>
16#include <tbb/parallel_for.h>
17#include <tbb/parallel_for_each.h>
18#include <tbb/parallel_reduce.h>
19#include <tbb/task_arena.h>
20#include <tbb/task_group.h>
22#if TBB_INTERFACE_VERSION_MAJOR >= 10
23# define WITH_TBB_GLOBAL_CONTROL
24# define TBB_PREVIEW_GLOBAL_CONTROL 1
25# include <tbb/global_control.h>
30using tbb::blocked_range;
31using tbb::blocked_range2d;
32using tbb::blocked_range3d;
33using tbb::enumerable_thread_specific;
34using tbb::parallel_for;
35using tbb::parallel_for_each;
36using tbb::parallel_reduce;
40#if TBB_INTERFACE_VERSION_MAJOR >= 12
41 tbb::task_group_context *ctx = tbb::task::current_context();
43 tbb::task_group_context *ctx = tbb::task::self().group();
46 ctx->capture_fp_settings();
52#if TBB_INTERFACE_VERSION_MAJOR >= 12
53 tbb::task_group_context *ctx = tbb::task::current_context();
55 ctx->cancel_group_execution();
58 tbb::task::self().cancel_group_execution();
#define CCL_NAMESPACE_END
static void thread_capture_fp_settings()
static void parallel_for_cancel()