File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
inst/include/RcppParallel Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 55#include < cstddef>
66#include < cstdlib>
77
8+ #include < functional>
9+ #include < utility>
10+
811namespace RcppParallel {
912
1013template <typename T, typename U>
Original file line number Diff line number Diff line change 77# define TBB_PREVIEW_GLOBAL_CONTROL 1
88#endif
99
10- #include < tbb/tbb.h>
11- #include < tbb/global_control.h>
12- #include < tbb/scalable_allocator.h>
13- #include < tbb/task_arena.h>
14-
1510// For compatibility with older R packages.
1611namespace tbb {
1712
@@ -29,7 +24,7 @@ class task_scheduler_init {
2924
3025 static int default_num_threads ()
3126 {
32- return tbb::this_task_arena::max_concurrency () ;
27+ return 2 ;
3328 }
3429
3530 static const int automatic = -1 ;
Original file line number Diff line number Diff line change 44#include < RcppParallel/Common.h>
55#include < RcppParallel/TBB.h>
66
7+ #include < tbb/tbb.h>
8+ #include < tbb/global_control.h>
9+ #include < tbb/scalable_allocator.h>
10+ #include < tbb/task_arena.h>
11+
712namespace RcppParallel {
813
914tbb::global_control* s_globalControl = nullptr ;
You can’t perform that action at this time.
0 commit comments