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 5
5
#include < cstddef>
6
6
#include < cstdlib>
7
7
8
+ #include < functional>
9
+ #include < utility>
10
+
8
11
namespace RcppParallel {
9
12
10
13
template <typename T, typename U>
Original file line number Diff line number Diff line change 7
7
# define TBB_PREVIEW_GLOBAL_CONTROL 1
8
8
#endif
9
9
10
- #include < tbb/tbb.h>
11
- #include < tbb/global_control.h>
12
- #include < tbb/scalable_allocator.h>
13
- #include < tbb/task_arena.h>
14
-
15
10
// For compatibility with older R packages.
16
11
namespace tbb {
17
12
@@ -29,7 +24,7 @@ class task_scheduler_init {
29
24
30
25
static int default_num_threads ()
31
26
{
32
- return tbb::this_task_arena::max_concurrency () ;
27
+ return 2 ;
33
28
}
34
29
35
30
static const int automatic = -1 ;
Original file line number Diff line number Diff line change 4
4
#include < RcppParallel/Common.h>
5
5
#include < RcppParallel/TBB.h>
6
6
7
+ #include < tbb/tbb.h>
8
+ #include < tbb/global_control.h>
9
+ #include < tbb/scalable_allocator.h>
10
+ #include < tbb/task_arena.h>
11
+
7
12
namespace RcppParallel {
8
13
9
14
tbb::global_control* s_globalControl = nullptr ;
You can’t perform that action at this time.
0 commit comments